mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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:
parent
1068083135
commit
3f9a7e5c73
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue