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/1551>
This commit is contained in:
Jan Alexander Steffens (heftig) 2020-09-01 13:29:30 +02:00 committed by GStreamer Merge Bot
parent 1068083135
commit 3f9a7e5c73

View file

@ -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);
}