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:
c6f6282
)
playbin2: make fallback identity silent
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 5 May 2009 15:17:00 +0000
(17:17 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 12 May 2009 08:38:15 +0000
(10:38 +0200)
Set the signal-handoffs to FALSE and silent to TRUE for the fallback identity
element so that it consumes less CPU.
gst/playback/gstplaysink.c
patch
|
blob
|
history
diff --git
a/gst/playback/gstplaysink.c
b/gst/playback/gstplaysink.c
index
461cd07
..
3cea839
100644
(file)
--- a/
gst/playback/gstplaysink.c
+++ b/
gst/playback/gstplaysink.c
@@
-1118,6
+1118,8
@@
gen_text_chain (GstPlaySink * playsink)
* overlay. the only thing we can do is insert an identity and ghost the src
* and sink pads. */
chain->conv = gst_element_factory_make ("identity", "tidentity");
+ g_object_set (chain->conv, "signal-handoffs", FALSE, NULL);
+ g_object_set (chain->conv, "silent", TRUE, NULL);
gst_bin_add (bin, chain->conv);
srcpad = gst_element_get_static_pad (chain->conv, "src");
videosinkpad = gst_element_get_static_pad (chain->conv, "sink");