[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:24:25 CEST 2010


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon May 24 22:43:04 2010 +0200| [0dad9f6c5ced9f536c3cfd9ca950c545d4325cce] | 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 (Close #3656)
(cherry picked from commit 2b5aff224a537fedf35e63ba7a637cd9ff490e71)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=0dad9f6c5ced9f536c3cfd9ca950c545d4325cce
---

 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