[pitivi] SourceFactory: Synchronize the state of newly added elements with parent.



commit 67fca2ad457978bbb91c73f6084831227de293de
Author: Edward Hervey <bilboed bilboed com>
Date:   Sun Jul 19 19:32:16 2009 +0200

    SourceFactory: Synchronize the state of newly added elements with parent.

 pitivi/factories/base.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/factories/base.py b/pitivi/factories/base.py
index 36a9bcf..0784b2f 100644
--- a/pitivi/factories/base.py
+++ b/pitivi/factories/base.py
@@ -350,6 +350,9 @@ class SourceFactory(ObjectFactory):
             b.volume = gst.element_factory_make("volume", "internal-volume")
             b.add(b.volume, b.ares, b.aconv)
             gst.element_link_many(b.aconv, b.ares, b.volume)
+            b.aconv.sync_state_with_parent()
+            b.ares.sync_state_with_parent()
+            b.volume.sync_state_with_parent()
 
         b.add(b.decodebin)
         return b



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]