summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>2020-09-01 13:29:30 +0200
committerTim-Philipp Müller <tim@centricular.com>2020-09-30 15:56:13 +0100
commit568e842b015e97d5e7894c675a8159d7280eed7f (patch)
treed9cf6cb502b30cf0727dce8dfcc0ef2024ffb681 /ext
parent78ad3bcf9b72d72f9f78436b2b439c1c9b78c222 (diff)
downloadgstreamer-plugins-bad-568e842b015e97d5e7894c675a8159d7280eed7f.tar.gz
hlssink2: Actually release splitmuxsink's pads
It was looking at the "outer" peer of the ghost pad, not the "inner" peer (the target). It provided the wrong pad to gst_element_release_request_pad. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1623>
Diffstat (limited to 'ext')
-rw-r--r--ext/hls/gsthlssink2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/hls/gsthlssink2.c b/ext/hls/gsthlssink2.c
index 4751fc579..38dee864d 100644
--- a/ext/hls/gsthlssink2.c
+++ b/ext/hls/gsthlssink2.c
@@ -536,9 +536,9 @@ gst_hls_sink2_release_pad (GstElement * element, GstPad * pad)
g_return_if_fail (pad == sink->audio_sink || pad == sink->video_sink);
- peer = gst_pad_get_peer (pad);
+ peer = gst_ghost_pad_get_target (GST_GHOST_PAD (pad));
if (peer) {
- gst_element_release_request_pad (sink->splitmuxsink, pad);
+ gst_element_release_request_pad (sink->splitmuxsink, peer);
gst_object_unref (peer);
}