Commit 5e5e66ad authored by Laurent Aimar's avatar Laurent Aimar Committed by 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: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent adb6aa03
......@@ -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);
......
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