[pitivi/ges] viewer: Use the SimplePipeline class for the trimming preiview pipeline
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges] viewer: Use the SimplePipeline class for the trimming preiview pipeline
- Date: Sat, 5 May 2012 20:19:15 +0000 (UTC)
commit 45b83471c66dfaef6b82903df2838c7c6f8f408d
Author: Thibault Saunier <thibault saunier collabora com>
Date: Tue May 1 23:52:57 2012 -0400
viewer: Use the SimplePipeline class for the trimming preiview pipeline
pitivi/viewer.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/viewer.py b/pitivi/viewer.py
index abd7ebd..9159ccd 100644
--- a/pitivi/viewer.py
+++ b/pitivi/viewer.py
@@ -31,7 +31,7 @@ from math import pi
from pitivi.utils.loggable import Loggable
from pitivi.settings import GlobalSettings
-from pitivi.utils.pipeline import Seeker
+from pitivi.utils.pipeline import Seeker, SimplePipeline
from pitivi.utils.ui import SPACING, hex_to_rgb
from pitivi.utils.widgets import TimeWidget
@@ -496,10 +496,10 @@ class PitiviViewer(gtk.VBox, Loggable):
self.debug("Creating temporary pipeline for clip %s, position %s",
clip_uri, gst.TIME_ARGS(position))
- self._oldTimelinePos = self.pipeline.query_position(gst.FORMAT_TIME)[0]
+ self._oldTimelinePos = self.pipeline.getPosition()
self._tmp_pipeline = gst.element_factory_make("playbin2")
self._tmp_pipeline.set_property("uri", clip_uri)
- self.setPipeline(self._tmp_pipeline)
+ self.setPipeline(SimplePipeline(self._tmp_pipeline))
self._lastClipTrimTime = cur_time
if (cur_time - self._lastClipTrimTime) > 0.2:
# Do not seek more than once every 200 ms (for performance)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]