mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
aiffparse: make sure we have data before handling sink event
Check AIFF_PARSE_DATA is True before handling sink event, if not goto exit.
This commit is contained in:
parent
dc2c4840f9
commit
a4baabb48d
1 changed files with 5 additions and 0 deletions
|
@ -1805,6 +1805,11 @@ gst_aiff_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
GST_DEBUG_OBJECT (aiff, "received segment %" GST_SEGMENT_FORMAT,
|
||||
&segment);
|
||||
|
||||
if (aiff->state != AIFF_PARSE_DATA) {
|
||||
GST_DEBUG_OBJECT (aiff, "still starting, eating event");
|
||||
goto exit;
|
||||
}
|
||||
|
||||
/* now we are either committed to TIME or BYTE format,
|
||||
* and we only expect a BYTE segment, e.g. following a seek */
|
||||
if (segment.format == GST_FORMAT_BYTES) {
|
||||
|
|
Loading…
Reference in a new issue