summaryrefslogtreecommitdiff
path: root/gst-libs/gst/pbutils/gstdiscoverer.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/pbutils/gstdiscoverer.c')
-rw-r--r--gst-libs/gst/pbutils/gstdiscoverer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst-libs/gst/pbutils/gstdiscoverer.c b/gst-libs/gst/pbutils/gstdiscoverer.c
index 6018a56c5..9dfc50ae7 100644
--- a/gst-libs/gst/pbutils/gstdiscoverer.c
+++ b/gst-libs/gst/pbutils/gstdiscoverer.c
@@ -549,7 +549,9 @@ got_subtitle_data (GstPad * pad, GstPadProbeInfo * info, GstDiscoverer * dc)
{
if (!(GST_IS_BUFFER (info->data) || (GST_IS_EVENT (info->data)
- && GST_EVENT_TYPE ((GstEvent *) info->data) == GST_EVENT_GAP)))
+ && (GST_EVENT_TYPE ((GstEvent *) info->data) == GST_EVENT_GAP
+ || GST_EVENT_TYPE ((GstEvent *) info->data) ==
+ GST_EVENT_EOS))))
return GST_PAD_PROBE_OK;