From f902286a2643684ff83af44e519d1ae15f66c164 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 20 Oct 2017 18:40:42 +0200 Subject: [PATCH] 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 --- ext/ogg/gstoggdemux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 34befa7..2652f13 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -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); -- 2.7.4