[pitivi] pipeline: No need to flush pipeline when PLAYING
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] pipeline: No need to flush pipeline when PLAYING
- Date: Sat, 13 Dec 2014 19:11:41 +0000 (UTC)
commit f9c49690413f67240767fcae58bb9d253090ca88
Author: Thibault Saunier <tsaunier gnome org>
Date: Mon Dec 1 01:12:00 2014 +0100
pipeline: No need to flush pipeline when PLAYING
Flushing is just to make sure that a frame is produced with the new
pipeline configuration, when we are playing we are already sure that
will happen so no need to force that again
pitivi/utils/pipeline.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/utils/pipeline.py b/pitivi/utils/pipeline.py
index 60ca758..6dcd498 100644
--- a/pitivi/utils/pipeline.py
+++ b/pitivi/utils/pipeline.py
@@ -218,7 +218,10 @@ class SimplePipeline(GObject.Object, Loggable):
self._bus = None
def flushSeek(self):
- self.pause()
+ if self.getState() == Gst.State.PLAYING:
+ self.debug("Playing, no need to flush here!")
+ return
+
try:
self.seekRelative(0)
except PipelineError as e:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]