[vlc-commits] commit: Rawvid: rewind to the beginning of the stream when an error occur ( Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Mon May 24 23:16:48 CEST 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon May 24 22:43:04 2010 +0200| [2b5aff224a537fedf35e63ba7a637cd9ff490e71] | committer: Jean-Baptiste Kempf 

Rawvid: rewind to the beginning of the stream when an error occur

That fixes the y4m with unknown chroma that avformat can read

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2b5aff224a537fedf35e63ba7a637cd9ff490e71
---

 modules/demux/rawvid.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/demux/rawvid.c b/modules/demux/rawvid.c
index 2eb33dd..120c9e3 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;
 }



More information about the vlc-commits mailing list