[pitivi] viewer: Clarify that the pipeline param is not None
- From: Mathieu Duponchelle <mathieudu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] viewer: Clarify that the pipeline param is not None
- Date: Tue, 4 Feb 2014 21:55:44 +0000 (UTC)
commit 5a7e0ff24ce90f75590d76a23b132a8d1ef71fea
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Mon Jan 13 13:56:42 2014 +0100
viewer: Clarify that the pipeline param is not None
pitivi/viewer.py | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/pitivi/viewer.py b/pitivi/viewer.py
index f7bd4ea..75935e5 100644
--- a/pitivi/viewer.py
+++ b/pitivi/viewer.py
@@ -134,15 +134,14 @@ class PitiviViewer(Gtk.VBox, Loggable):
self.pipeline.set_state(Gst.State.NULL)
self.pipeline = pipeline
- if self.pipeline:
- self.pipeline.pause()
- self.seeker.seek(position)
+ self.pipeline.pause()
+ self.seeker.seek(position)
- self.pipeline.connect("state-change", self._pipelineStateChangedCb)
- self.pipeline.connect("position", self._positionCb)
- self.pipeline.connect("duration-changed", self._durationChangedCb)
+ self.pipeline.connect("state-change", self._pipelineStateChangedCb)
+ self.pipeline.connect("position", self._positionCb)
+ self.pipeline.connect("duration-changed", self._durationChangedCb)
- self.sink = pipeline.video_overlay
+ self.sink = self.pipeline.video_overlay
self.target.sink = self.sink
self._switch_output_window()
self._setUiActive()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]