mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
Ignore junk after the stream
Original commit message from CVS: Ignore junk after the stream
This commit is contained in:
parent
3d6ee376df
commit
bb3e687dcb
1 changed files with 6 additions and 2 deletions
|
@ -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) { /* do we have to test identity? */
|
||||||
if (desired_tag != chunkid) {
|
if (desired_tag != chunkid) {
|
||||||
g_print ("\n\n *** Error: Expected chunk '%08x', found '%08x'\n",
|
g_print ("\n\n *** Error: Expected chunk '%s', found '%s'\n",
|
||||||
desired_tag, chunkid);
|
gst_riff_id_to_fourcc (desired_tag),
|
||||||
|
gst_riff_id_to_fourcc (chunkid));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -686,7 +687,10 @@ gst_avi_demux_loop (GstElement *element)
|
||||||
/* this is basically an infinite loop */
|
/* this is basically an infinite loop */
|
||||||
if (!gst_avidemux_process_chunk (avi_demux, &filepos, GST_RIFF_TAG_RIFF, 0, &chunksize)) {
|
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");
|
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
|
static GstElementStateReturn
|
||||||
|
|
Loading…
Reference in a new issue