mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
playbin2: make fallback identity silent
Set the signal-handoffs to FALSE and silent to TRUE for the fallback identity element so that it consumes less CPU.
This commit is contained in:
parent
c6f6282fde
commit
e1aa348246
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue