]> git.sesse.net Git - vlc/blobdiff - modules/demux/rawvid.c
Rawvid: rewind to the beginning of the stream when an error occur
[vlc] / modules / demux / rawvid.c
index 2eb33ddf7d832357046f1993962407f5a29f722d..120c9e391ab77d7cbf9652d127641460c9a2b882 100644 (file)
@@ -383,6 +383,7 @@ static int Open( vlc_object_t * p_this )
     return VLC_SUCCESS;
 
 error:
+    stream_Seek( p_demux->s, 0 ); // Workaround, but y4m uses stream_ReadLines
     free( p_sys );
     return VLC_EGENERIC;
 }