rtpdtmfmux: Avoid taking an unnecessary ref
authorSebastian Rasmussen <sebras@hotmail.com>
Sun, 13 Jul 2014 14:04:23 +0000 (16:04 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 16 Jul 2014 14:45:31 +0000 (16:45 +0200)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=733122

gst/rtpmanager/gstrtpdtmfmux.c

index e0f6bf4..4fed17e 100644 (file)
@@ -165,7 +165,7 @@ gst_rtp_dtmf_mux_request_new_pad (GstElement * element, GstPadTemplate * templ,
     padpriv = gst_pad_get_element_private (pad);
 
     if (gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS (element),
-            "priority_sink_%u") == gst_pad_get_pad_template (pad))
+            "priority_sink_%u") == GST_PAD_PAD_TEMPLATE (pad))
       padpriv->priority = TRUE;
     GST_OBJECT_UNLOCK (element);
   }