utils: avoid extra hop in gst_element_link

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.
This commit is contained in:
Stefan Kost 2010-01-10 21:40:24 +02:00
parent 5a12d1efa5
commit 5fa9d942e3

View 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);
}
/**