From 136942f307a3fee34c6a9f11353328f264e9027b Mon Sep 17 00:00:00 2001 From: Laurent Aimar <fenrir@videolan.org> Date: Sun, 8 Jan 2012 22:09:10 +0100 Subject: [PATCH] Do not error out on empty rar file. It avoids trying to play the file. --- modules/access/rar/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/access/rar/stream.c b/modules/access/rar/stream.c index 9c1b55f88f52..567743c2224f 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); -- GitLab