From e1aa34824661e9c262514e794e2f11cd5ae556ed Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 5 May 2009 17:17:00 +0200 Subject: [PATCH] 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. --- gst/playback/gstplaysink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index 461cd07..3cea839 100644 --- 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"); -- 2.7.4