oggdemux: Error out on EOS if we have no chains to use
authorEdward Hervey <edward@centricular.com>
Fri, 20 Oct 2017 16:40:42 +0000 (18:40 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 20 Oct 2017 16:41:52 +0000 (18:41 +0200)
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

index 34befa7..2652f13 100644 (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);