diff --git a/webrtc/sendrecv/gst/webrtc-sendrecv.c b/webrtc/sendrecv/gst/webrtc-sendrecv.c index 867b25a6f3..c2bb55c722 100644 --- a/webrtc/sendrecv/gst/webrtc-sendrecv.c +++ b/webrtc/sendrecv/gst/webrtc-sendrecv.c @@ -185,6 +185,7 @@ on_incoming_stream (GstElement * webrtc, GstPad * pad, GstElement * pipe) sinkpad = gst_element_get_static_pad (decodebin, "sink"); gst_pad_link (pad, sinkpad); + gst_object_unref (sinkpad); } static void