[pitivi] project.py: Set the pipeline back to NULL when setting up trimming pipeline



commit 66a2d91ef12f389066eade471f6bf28a512e7ccf
Author: Thibault Saunier <tsaunier gnome org>
Date:   Sat Apr 18 15:43:01 2015 +0200

    project.py: Set the pipeline back to NULL when setting up trimming pipeline
    
    Summary:
    This is a workaround as this should not be needed but currently without it,
    the sink does not restart working when setting back the GES Pipeline.
    
    Fixes T47
    
    Maniphest Tasks: T47
    
    Reviewers: Mathieu_Du
    
    Differential Revision: http://phabricator.freedesktop.org/D114

 pitivi/viewer.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/viewer.py b/pitivi/viewer.py
index c681fe2..241f31a 100644
--- a/pitivi/viewer.py
+++ b/pitivi/viewer.py
@@ -426,6 +426,7 @@ class ViewerContainer(Gtk.Box, Loggable):
             self.debug("Creating temporary pipeline for clip %s, position %s",
                        clip_uri, format_ns(position))
             self._oldTimelinePos = self.pipeline.getPosition()
+            self.pipeline.set_state(Gst.State.NULL)
             self.setPipeline(AssetPipeline(clip))
             self._lastClipTrimTime = cur_time
 


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