[pitivi] factories: Silence identity.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] factories: Silence identity.
- Date: Thu, 26 Nov 2009 13:12:55 +0000 (UTC)
commit 91d51abea4f3a3deb344c4a5d69c519f50f6ad06
Author: Edward Hervey <bilboed bilboed com>
Date: Thu Nov 26 13:59:37 2009 +0100
factories: Silence identity.
This avoids making them waste cpu time creating messages nobody reads
pitivi/factories/operation.py | 2 ++
pitivi/factories/timeline.py | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/factories/operation.py b/pitivi/factories/operation.py
index 3a76ac5..6e37206 100644
--- a/pitivi/factories/operation.py
+++ b/pitivi/factories/operation.py
@@ -67,6 +67,7 @@ class AudioModifierFactory(StreamModifierFactory):
b = gst.Bin()
idt = gst.element_factory_make("identity", "single-segment")
idt.props.single_segment = True
+ idt.props.silent = True
aconv = gst.element_factory_make("audioconvert", "aconv")
ares = gst.element_factory_make("audioresample", "ares")
arate = gst.element_factory_make("audiorate", "arate")
@@ -98,6 +99,7 @@ class VideoModifierFactory(StreamModifierFactory):
b = gst.Bin()
idt = gst.element_factory_make("identity", "single-segment")
idt.props.single_segment = True
+ idt.props.silent = True
csp = gst.element_factory_make("ffmpegcolorspace", "csp")
vrate = gst.element_factory_make("videorate", "vrate")
diff --git a/pitivi/factories/timeline.py b/pitivi/factories/timeline.py
index df7a430..7363b63 100644
--- a/pitivi/factories/timeline.py
+++ b/pitivi/factories/timeline.py
@@ -126,6 +126,7 @@ class TimelineSourceFactory(SourceFactory):
# in <= 0.10.14 there was a bug in basetransform (commit
# 83f31c7194b96ec857d6695746dd8b3fcba1846a in gst-python)
seek = gst.element_factory_make('identity')
+ seek.props.silent = True
else:
seek = FixSeekStart(track)
self.bin.add(seek)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]