projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7f2540
)
Use more performant link function
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 23 Jan 2009 10:37:45 +0000
(11:37 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 23 Jan 2009 10:37:45 +0000
(11:37 +0100)
We can use gst_element_link_pads() instead of the more generic
gst_element_link() function because we know the pads. This saves some cycles
because the more generic function needs to search for possible compatible caps
etc.
gst/playback/gsturidecodebin.c
patch
|
blob
|
history
diff --git
a/gst/playback/gsturidecodebin.c
b/gst/playback/gsturidecodebin.c
index
9f917ae
..
ab34236
100644
(file)
--- a/
gst/playback/gsturidecodebin.c
+++ b/
gst/playback/gsturidecodebin.c
@@
-1160,12
+1160,12
@@
type_found (GstElement * typefind, guint probability,
gst_bin_add (GST_BIN_CAST (decoder), queue);
- if (!gst_element_link
(typefind, queue
))
+ if (!gst_element_link
_pads (typefind, "src", queue, "sink"
))
goto could_not_link;
g_object_set (G_OBJECT (dec_elem), "sink-caps", caps, NULL);
- if (!gst_element_link
(queue, dec_elem
))
+ if (!gst_element_link
_pads (queue, "src", dec_elem, "sink"
))
goto could_not_link;
gst_element_set_state (dec_elem, GST_STATE_PLAYING);