From 5fa9d942e3e672c07980d31b903b3bac491447c9 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Sun, 10 Jan 2010 21:40:24 +0200 Subject: [PATCH] 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. --- gst/gstutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstutils.c b/gst/gstutils.c index 2fc29cb..7264860 100644 --- a/gst/gstutils.c +++ b/gst/gstutils.c @@ -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); } /** -- 2.7.4