mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
oggdemux: Error out on EOS if we have no chains to use
There are not active and pending chains, if we get EOS we need to inform the user via an error message
This commit is contained in:
parent
ef93130cf0
commit
f902286a26
1 changed files with 3 additions and 0 deletions
|
@ -4655,6 +4655,9 @@ gst_ogg_demux_send_event (GstOggDemux * ogg, GstEvent * event)
|
|||
}
|
||||
} else {
|
||||
GST_WARNING_OBJECT (ogg, "No chain to forward event to");
|
||||
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS)
|
||||
GST_ELEMENT_ERROR (ogg, STREAM, DEMUX, (NULL),
|
||||
("EOS before finding a chain"));
|
||||
}
|
||||
gst_event_unref (event);
|
||||
|
||||
|
|
Loading…
Reference in a new issue