vlc/vlc-1.2 | branch: master | Laurent Aimar <[email protected]> | Sun Jan 8 22:09:10 2012 +0100| [5e5e66adfa86d27aa89d2ec8489b118bacc0298c] | committer: Jean-Baptiste Kempf
Do not error out on empty rar file. It avoids trying to play the file. (cherry picked from commit 136942f307a3fee34c6a9f11353328f264e9027b) Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=5e5e66adfa86d27aa89d2ec8489b118bacc0298c --- modules/access/rar/stream.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/modules/access/rar/stream.c b/modules/access/rar/stream.c index 33bc7cb..50ed06c 100644 --- a/modules/access/rar/stream.c +++ b/modules/access/rar/stream.c @@ -93,7 +93,7 @@ static int Open(vlc_object_t *object) int count; rar_file_t **files; const int64_t position = stream_Tell(s->p_source); - if (RarParse(s->p_source, &count, &files) || count <= 0) { + if (RarParse(s->p_source, &count, &files)) { stream_Seek(s->p_source, position); msg_Err(s, "Invalid or unsupported RAR archive"); free(files); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
