vlc/vlc-2.0 | branch: master | Laurent Aimar <[email protected]> | Thu Feb 23 
20:13:39 2012 +0100| [6d12ed2f7ce04f8e0513821ae7d1266c0363d866] | committer: 
Jean-Baptiste Kempf

Fixed support for multi-volume archive.

09d1c6e1891cdc914d25279aabdd83c13baab227 was not working...

It fixes #6190.
(cherry picked from commit 1cc7a5c9a45e1d1b54afb310f68e43cdec32dc6f)

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=6d12ed2f7ce04f8e0513821ae7d1266c0363d866
---

 modules/access/rar/rar.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/access/rar/rar.c b/modules/access/rar/rar.c
index ceea9da..944d6b5 100644
--- a/modules/access/rar/rar.c
+++ b/modules/access/rar/rar.c
@@ -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;
         }

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to