mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
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.
This commit is contained in:
parent
0846eb5b27
commit
bd74b102fa
1 changed files with 3 additions and 1 deletions
|
@ -548,7 +548,9 @@ got_subtitle_data (GstPad * pad, GstPadProbeInfo * info, GstDiscoverer * dc)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!(GST_IS_BUFFER (info->data) || (GST_IS_EVENT (info->data)
|
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;
|
return GST_PAD_PROBE_OK;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue