diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2002-01-19 17:48:45 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2002-01-19 17:48:45 +0000 |
commit | bb3e687dcba08ccd09d6c5029a636fbbce2dec2f (patch) | |
tree | 6f2057a38c973801ca6a6f69f01f83d089ee3c79 /gst/avi | |
parent | 3d6ee376df5b35a4a8934ccbb608d129821f1442 (diff) |
Ignore junk after the stream
Original commit message from CVS:
Ignore junk after the stream
Diffstat (limited to 'gst/avi')
-rw-r--r-- | gst/avi/gstavidemux.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index 402eec29..e461a58a 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -522,8 +522,9 @@ gst_avidemux_process_chunk (GstAviDemux *avi_demux, guint64 *filepos, } if (desired_tag) { /* do we have to test identity? */ if (desired_tag != chunkid) { - g_print ("\n\n *** Error: Expected chunk '%08x', found '%08x'\n", - desired_tag, chunkid); + g_print ("\n\n *** Error: Expected chunk '%s', found '%s'\n", + gst_riff_id_to_fourcc (desired_tag), + gst_riff_id_to_fourcc (chunkid)); return FALSE; } } @@ -686,7 +687,10 @@ gst_avi_demux_loop (GstElement *element) /* this is basically an infinite loop */ if (!gst_avidemux_process_chunk (avi_demux, &filepos, GST_RIFF_TAG_RIFF, 0, &chunksize)) { gst_element_error (element, "This doesn't appear to be an AVI file"); + return; } + /* if we exit the loop we are EOS */ + gst_pad_event_default (avi_demux->sinkpad, gst_event_new (GST_EVENT_EOS)); } static GstElementStateReturn |