[pitivi] Viewer: Reset the pipeline before setting a new Pipeline/Action.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] Viewer: Reset the pipeline before setting a new Pipeline/Action.
- Date: Tue, 12 May 2009 13:43:39 -0400 (EDT)
commit 76b80148e6600883040071f978cfeef62675188f
Author: Edward Hervey <bilboed bilboed com>
Date: Tue May 12 19:42:01 2009 +0200
Viewer: Reset the pipeline before setting a new Pipeline/Action.
If we don't do this... the pipelines still carry on existing for some
weird reason. Don't have time to further investigate this, but we
should have a deeper look after the release.
---
pitivi/ui/mainwindow.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index b8003f2..baa7216 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -879,6 +879,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
pipeline = Pipeline()
action = ViewAction()
action.addProducers(factory)
+ self.viewer.setPipeline(None)
# FIXME: why do I have to call viewer.setAction ?
self.viewer.setAction(action)
self.viewer.setPipeline(pipeline)
@@ -887,6 +888,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
def _timelineRulerSeekCb(self, ruler, position):
self.debug("position:%s", gst.TIME_ARGS (position))
if self.viewer.action != self.project.view_action:
+ self.viewer.setPipeline(None)
self.viewer.setAction(self.project.view_action)
self.viewer.setPipeline(self.project.pipeline)
# get the pipeline settings and set the DAR of the viewer
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]