]> git.sesse.net Git - vlc/commitdiff
Rawvid: rewind to the beginning of the stream when an error occur
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 24 May 2010 20:43:04 +0000 (22:43 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 24 May 2010 21:15:46 +0000 (23:15 +0200)
That fixes the y4m with unknown chroma that avformat can read

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;
 }