[pitivi] pitivi/factories/base.py: clear ghost pad target before removing it



commit 1ac892da095598d272f292bb240e3e69a72b1043
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date:   Wed Jan 20 17:53:46 2010 -0800

    pitivi/factories/base.py: clear ghost pad target before removing it

 pitivi/factories/base.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/factories/base.py b/pitivi/factories/base.py
index e0b6081..3ddbe9f 100644
--- a/pitivi/factories/base.py
+++ b/pitivi/factories/base.py
@@ -440,8 +440,14 @@ class SourceFactory(ObjectFactory):
 
     def _singlePadRemovedCb(self, dbin, pad, topbin):
         self.debug("dbin:%r, pad:%r, topbin:%r", dbin, pad, topbin)
+
+        # work around for http://bugzilla.gnome.org/show_bug.cgi?id=590735
+        die = gst.Pad("die", gst.PAD_SRC)
+        topbin.ghostpad.set_target(die)
+
         topbin.remove_pad(topbin.ghostpad)
         del topbin.ghostpad
+
         if hasattr(topbin, "volume"):
             pad.unlink(topbin.aconv.get_pad("sink"))
         elif hasattr(topbin, "alpha"):



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