[pitivi/ges] timeline: Prevent a crash due to a bad parameter



commit 49924505a6a27bb2de89397947253fa0c1094610
Author: Thiago Santos <thiago sousa santos collabora com>
Date:   Mon Apr 30 10:57:45 2012 -0300

    timeline: Prevent a crash due to a bad parameter
    
    It seems python bindings won't properly understand None as an
    empty list. Use an explicit empty list instead.
    
    Fixes bug #675158

 pitivi/utils/timeline.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/utils/timeline.py b/pitivi/utils/timeline.py
index 6c365b9..ad4a66a 100644
--- a/pitivi/utils/timeline.py
+++ b/pitivi/utils/timeline.py
@@ -240,7 +240,7 @@ class EditingContext(Signallable):
         else:
             priority = max(0, priority)
 
-        res = self.focus.edit(None, priority, self.mode, self.edge, long(position))
+        res = self.focus.edit([], priority, self.mode, self.edge, long(position))
         if res and self.mode == ges.EDIT_MODE_TRIM:
             uri = self.focus.props.uri
             if self.edge == ges.EDGE_START:



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