unref sinkpad
authorBernhard Jung <bernhard.jung@daqri.com>
Mon, 1 Jul 2019 10:01:31 +0000 (12:01 +0200)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 1 Jul 2019 10:21:20 +0000 (13:21 +0300)
webrtc/sendrecv/gst/webrtc-sendrecv.c

index 867b25a..c2bb55c 100644 (file)
@@ -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