From bd74b102fa9bebb58b8a7e476e12e43e6502fcc0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 28 Nov 2016 10:04:38 +0200 Subject: [PATCH] discoverer: Also stop waiting for subtitles if we get EOS We're not going to get a buffer or GAP event anymore after EOS and would wait forever otherwise. --- gst-libs/gst/pbutils/gstdiscoverer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/pbutils/gstdiscoverer.c b/gst-libs/gst/pbutils/gstdiscoverer.c index ff79471..dcd6f70 100644 --- a/gst-libs/gst/pbutils/gstdiscoverer.c +++ b/gst-libs/gst/pbutils/gstdiscoverer.c @@ -548,7 +548,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; -- 2.7.4