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:
Edward Hervey 2017-10-20 18:40:42 +02:00 committed by Edward Hervey
parent ef93130cf0
commit f902286a26

View file

@ -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);