From 76b5178260d5b69102e61cbad62727c29aaf58ac Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 17 Jul 2023 16:40:05 +0530 Subject: [PATCH] webrtcrenego: Fix incorrect release of non-request pad GStreamer-CRITICAL **: 16:39:23.230: gst_element_release_request_pad: assertion 'GST_PAD_PAD_TEMPLATE (pad) == NULL || GST_PAD_TEMPLATE_PRESENCE (GST_PAD_PAD_TEMPLATE (pad)) == GST_PAD_REQUEST' failed Part-of: --- .../gst-plugins-bad/tests/examples/webrtc/webrtcrenego.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-bad/tests/examples/webrtc/webrtcrenego.c b/subprojects/gst-plugins-bad/tests/examples/webrtc/webrtcrenego.c index d42f008636..a3a9b76cba 100644 --- a/subprojects/gst-plugins-bad/tests/examples/webrtc/webrtcrenego.c +++ b/subprojects/gst-plugins-bad/tests/examples/webrtc/webrtcrenego.c @@ -16,7 +16,7 @@ _element_message (GstElement * parent, GstMessage * msg) { switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_EOS:{ - GstElement *receive, *webrtc; + GstElement *receive; GstPad *pad, *peer; g_print ("Got element EOS message from %s parent %s\n", @@ -27,11 +27,9 @@ _element_message (GstElement * parent, GstMessage * msg) pad = gst_element_get_static_pad (receive, "sink"); peer = gst_pad_get_peer (pad); - webrtc = GST_ELEMENT (gst_pad_get_parent (peer)); gst_bin_remove (GST_BIN (pipe1), receive); gst_pad_unlink (peer, pad); - gst_element_release_request_pad (webrtc, peer); gst_object_unref (pad); gst_object_unref (peer);