[pitivi/ges: 32/287] Set pipeline to NULL when deleting for the while



commit e19b58d2192b80435f376cbbe59f7bfd8a6aff0d
Author: Mathieu Duponchelle <seeed laposte net>
Date:   Wed Aug 31 20:55:49 2011 +0200

    Set pipeline to NULL when deleting for the while

 pitivi/ui/timeline.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index f702a88..6783be6 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -682,6 +682,7 @@ class Timeline(gtk.Table, Loggable, Zoomable):
         Zoomable.zoomOut()
 
     def deleteSelected(self, unused_action):
+        self.app.projectManager.current.pipeline.set_state(gst.STATE_NULL)
         if self.timeline:
             self.app.action_log.begin("delete clip")
             for track_object in self.timeline.selected:
@@ -698,6 +699,7 @@ class Timeline(gtk.Table, Loggable, Zoomable):
                     lyr.remove_object(obj)
                     print "removed"
             self.app.action_log.commit()
+        self.app.projectManager.current.pipeline.set_state(gst.STATE_PAUSED)
 
     def unlinkSelected(self, unused_action):
         if self.timeline:



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