[pitivi] factories/base.py: clean up child bin
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] factories/base.py: clean up child bin
- Date: Fri, 22 Jan 2010 18:05:11 +0000 (UTC)
commit 07ae80d0e8601d28920639dd054d20e123681011
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Tue Jan 19 16:21:09 2010 -0800
factories/base.py: clean up child bin
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 0c59a81..e0b6081 100644
--- a/pitivi/factories/base.py
+++ b/pitivi/factories/base.py
@@ -318,6 +318,9 @@ class SourceFactory(ObjectFactory):
bin.decodebin.disconnect_by_func(self._singlePadRemovedCb)
del bin.decodebin
+ if hasattr(bin, "child"):
+ bin.child.set_state(gst.STATE_NULL)
+ del bin.child
if hasattr(bin, "volume"):
# only audio bins have a volume element
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]