diff options
author | Tom Bailey <tom.bailey@youview.com> | 2017-08-02 18:17:08 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-08-08 16:04:42 +0100 |
commit | 4064683d36ba8eb8732b904be0bdaedc38b013fc (patch) | |
tree | eb9020e120c261dc07d87087b0e6864c31312137 /gst-libs/gst/adaptivedemux/gstadaptivedemux.c | |
parent | f0500ec8b429b2ad44ac053982022f16296f51fd (diff) | |
download | gstreamer-plugins-bad-4064683d36ba8eb8732b904be0bdaedc38b013fc.tar.gz |
adaptivedemux: Fix leak of pad probes in GstAdaptiveDemuxStream
This commit ensures that the idle probe which GstAdaptiveDemuxStream
adds to the upstream source pad is removed after use. Previously a new
probe was added to the pad whenever a fragment was downloaded, meaning
the number of pad probe callbacks being executed increased continually.
https://bugzilla.gnome.org/show_bug.cgi?id=785957
Diffstat (limited to 'gst-libs/gst/adaptivedemux/gstadaptivedemux.c')
-rw-r--r-- | gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index 7b7d1fc52..9ee1a7640 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -3081,7 +3081,7 @@ gst_ad_stream_src_to_ready_cb (GstPad * pad, GstPadProbeInfo * info, g_cond_signal (&stream->fragment_download_cond); g_mutex_unlock (&stream->fragment_download_lock); - return GST_PAD_PROBE_OK; + return GST_PAD_PROBE_REMOVE; } #ifndef GST_DISABLE_GST_DEBUG |