diff options
-rw-r--r-- | gst-libs/gst/tag/gsttagdemux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gst-libs/gst/tag/gsttagdemux.c b/gst-libs/gst/tag/gsttagdemux.c index b736276c1..f4c7f0e5d 100644 --- a/gst-libs/gst/tag/gsttagdemux.c +++ b/gst-libs/gst/tag/gsttagdemux.c @@ -761,8 +761,7 @@ gst_tag_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) switch (GST_EVENT_TYPE (event)) { case GST_EVENT_EOS: - /* FIXME, detect this differently */ - if (demux->priv->srcpad == NULL) { + if (!gst_pad_has_current_caps (demux->priv->srcpad)) { GST_WARNING_OBJECT (demux, "EOS before we found a type"); GST_ELEMENT_ERROR (demux, STREAM, TYPE_NOT_FOUND, (NULL), (NULL)); } |