[pitivi] Avoid an iterator Resync exception in singledecodebin.



commit ba32f3909f850073ced468ad5e217c688d708e5d
Author: Alessandro Decina <alessandro d gmail com>
Date:   Fri Sep 4 16:03:13 2009 +0200

    Avoid an iterator Resync exception in singledecodebin.

 pitivi/elements/singledecodebin.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/elements/singledecodebin.py b/pitivi/elements/singledecodebin.py
index b0eec7d..a6db1aa 100644
--- a/pitivi/elements/singledecodebin.py
+++ b/pitivi/elements/singledecodebin.py
@@ -368,7 +368,7 @@ class SingleDecodeBin(gst.Bin):
         Remove unused elements connected to srcpad(s) of element
         """
         self.log("element:%r" % element)
-        for pad in element.src_pads():
+        for pad in list(element.src_pads()):
             if pad.is_linked():
                 peer = pad.get_peer().get_parent()
                 if isinstance(peer, gst.Element):



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