From: Jean-Baptiste Kempf Date: Mon, 24 May 2010 20:43:04 +0000 (+0200) Subject: Rawvid: rewind to the beginning of the stream when an error occur X-Git-Tag: 1.2.0-pre1~6529 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2b5aff224a537fedf35e63ba7a637cd9ff490e71;p=vlc Rawvid: rewind to the beginning of the stream when an error occur That fixes the y4m with unknown chroma that avformat can read --- diff --git a/modules/demux/rawvid.c b/modules/demux/rawvid.c index 2eb33ddf7d..120c9e391a 100644 --- a/modules/demux/rawvid.c +++ b/modules/demux/rawvid.c @@ -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; }