[pitivi] pitivi: Make watchdog an opt-in optional UNSTABLE feature for now
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] pitivi: Make watchdog an opt-in optional UNSTABLE feature for now
- Date: Thu, 8 Jan 2015 18:52:45 +0000 (UTC)
commit c510dfe946af5003c659649e0c56e277c8112fcc
Author: Thibault Saunier <tsaunier gnome org>
Date: Thu Jan 8 19:43:19 2015 +0100
pitivi: Make watchdog an opt-in optional UNSTABLE feature for now
It still has some bugs to investigate to always activate it.
pitivi/utils/pipeline.py | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/pitivi/utils/pipeline.py b/pitivi/utils/pipeline.py
index f53f9fa..3a2c1f7 100644
--- a/pitivi/utils/pipeline.py
+++ b/pitivi/utils/pipeline.py
@@ -24,6 +24,7 @@
"""
High-level pipelines
"""
+import os
import platform
@@ -604,13 +605,15 @@ class Pipeline(GES.Pipeline, SimplePipeline):
self._seeker = Seeker()
self._seeker.connect("seek", self._seekCb)
self._seeker.connect("seek-relative", self._seekRelativeCb)
- watchdog = Gst.ElementFactory.make("watchdog", None)
- if watchdog:
- watchdog.props.timeout = WATCHDOG_TIMEOUT * 1000
- self.props.video_filter = watchdog
+
+ if "watchdog" in os.environ.get("PITIVI_UNSTABLE_FEATURES", None):
watchdog = Gst.ElementFactory.make("watchdog", None)
- watchdog.props.timeout = WATCHDOG_TIMEOUT * 1000
- self.props.audio_filter = watchdog
+ if watchdog:
+ watchdog.props.timeout = WATCHDOG_TIMEOUT * 1000
+ self.props.video_filter = watchdog
+ watchdog = Gst.ElementFactory.make("watchdog", None)
+ watchdog.props.timeout = WATCHDOG_TIMEOUT * 1000
+ self.props.audio_filter = watchdog
def _getDuration(self):
return self._timeline.get_duration()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]