rtpmux: Fix warning
authorOlivier Crête <olivier.crete@collabora.co.uk>
Wed, 22 Apr 2009 22:01:07 +0000 (18:01 -0400)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 16 Dec 2012 16:33:46 +0000 (16:33 +0000)
gst/rtpmanager/gstrtpmux.c

index 2a045b9..d7a9b47 100644 (file)
@@ -274,7 +274,7 @@ gst_rtp_mux_setup_sinkpad (GstRTPMux * rtp_mux, GstPad * sinkpad)
   gst_pad_set_active (sinkpad, TRUE);
 
   gst_pad_set_element_private (sinkpad, padpriv);
-  g_object_weak_ref (sinkpad, free_pad_private, padpriv);
+  g_object_weak_ref (G_OBJECT (sinkpad), free_pad_private, padpriv);
 
   /* dd the pad to the element */
   gst_element_add_pad (GST_ELEMENT (rtp_mux), sinkpad);