[pitivi: 26/28] factories/base.py: check if bin actually has ghostpad before attempting to remove it
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 26/28] factories/base.py: check if bin actually has ghostpad before attempting to remove it
- Date: Mon, 1 Mar 2010 10:59:45 +0000 (UTC)
commit f07ee101a0b4e50928e5fc2a9e096835fd32be36
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Wed Feb 10 13:55:06 2010 -0800
factories/base.py: check if bin actually has ghostpad before attempting to
remove it
pitivi/factories/base.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/factories/base.py b/pitivi/factories/base.py
index 3afc40a..e6cfa8b 100644
--- a/pitivi/factories/base.py
+++ b/pitivi/factories/base.py
@@ -461,11 +461,12 @@ class SourceFactory(ObjectFactory):
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)
+ if hasattr(topbin, "ghostpad"):
+ die = gst.Pad("die", gst.PAD_SRC)
+ topbin.ghostpad.set_target(die)
- topbin.remove_pad(topbin.ghostpad)
- del topbin.ghostpad
+ topbin.remove_pad(topbin.ghostpad)
+ del topbin.ghostpad
if hasattr(topbin, "volume"):
pad.unlink(topbin.aconv.get_pad("sink"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]