utils: avoid extra hop in gst_element_link
authorStefan Kost <ensonic@users.sf.net>
Sun, 10 Jan 2010 19:40:24 +0000 (21:40 +0200)
committerStefan Kost <ensonic@users.sf.net>
Sun, 10 Jan 2010 19:44:34 +0000 (21:44 +0200)
No need to call gst_element_link_pads_filtered with filter=NULL, which would
call gst_element_link_pads() in that way. Call it directly to save a call and
expensive gobject type checks.

gst/gstutils.c

index 2fc29cb..7264860 100644 (file)
@@ -1900,7 +1900,7 @@ gst_element_link_pads_filtered (GstElement * src, const gchar * srcpadname,
 gboolean
 gst_element_link (GstElement * src, GstElement * dest)
 {
-  return gst_element_link_pads_filtered (src, NULL, dest, NULL, NULL);
+  return gst_element_link_pads (src, NULL, dest, NULL);
 }
 
 /**