Skip to content
Snippets Groups Projects
Commit 21bb2451 authored by Laurent Aimar's avatar Laurent Aimar
Browse files

Reset the stream position when rar stream_filter failed to load.

parent 888aed94
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,9 @@ 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) {
stream_Seek(s->p_source, position);
msg_Err(s, "Invalid or unsupported RAR archive");
free(files);
return VLC_EGENERIC;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment