projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a12d1e
)
utils: avoid extra hop in gst_element_link
author
Stefan Kost
<ensonic@users.sf.net>
Sun, 10 Jan 2010 19:40:24 +0000
(21:40 +0200)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/gst/gstutils.c
b/gst/gstutils.c
index 2fc29cbb23bfd42a7e8a40ae63e2df30b8405387..7264860375dc4ccbb8972fc91f07bc6e74b3aaa3 100644
(file)
--- 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);
}
/**