Commit 6d12ed2f authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Fixed support for multi-volume archive.

09d1c6e1891cdc914d25279aabdd83c13baab227 was not working...

It fixes #6190.
(cherry picked from commit 1cc7a5c9a45e1d1b54afb310f68e43cdec32dc6f)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2991efd0
......@@ -327,7 +327,7 @@ int RarParse(stream_t *s, int *count, rar_file_t ***file)
}
/* */
bool has_next = false;
int has_next = 1;
for (;;) {
rar_block_t bk;
int ret;
......@@ -350,11 +350,12 @@ int RarParse(stream_t *s, int *count, rar_file_t ***file)
if (ret)
break;
}
if (has_next < 0)
has_next = *count > 0 && !(*file)[*count -1]->is_complete;
if (vol != s)
stream_Delete(vol);
if (!has_next || !pattern ||
(*count > 0 && !(*file)[*count -1]->is_complete)) {
if (!has_next || !pattern) {
free(volume_mrl);
return VLC_SUCCESS;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment