[pitivi] utils/pipeline: Emit a loggable warning when attempting recovery
- From: Jean-François Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] utils/pipeline: Emit a loggable warning when attempting recovery
- Date: Mon, 23 Sep 2013 18:38:55 +0000 (UTC)
commit 8876d8585bc38734e4e7d37b98636e91fa5e4f69
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date: Mon Sep 23 14:38:40 2013 -0400
utils/pipeline: Emit a loggable warning when attempting recovery
pitivi/utils/pipeline.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/utils/pipeline.py b/pitivi/utils/pipeline.py
index 7050a6a..e84c4a5 100644
--- a/pitivi/utils/pipeline.py
+++ b/pitivi/utils/pipeline.py
@@ -419,6 +419,7 @@ class SimplePipeline(Signallable, Loggable):
if self.pendingRecovery:
self.simple_seek(self.lastPosition)
self.pendingRecovery = False
+ self.info("Seeked back to the last position after pipeline recovery")
elif prev == Gst.State.PAUSED and new == Gst.State.PLAYING:
self._listenToPosition(True)
elif prev == Gst.State.PLAYING and new == Gst.State.PAUSED:
@@ -444,6 +445,7 @@ class SimplePipeline(Signallable, Loggable):
self.log("%s [%r]" % (message.type, message.src))
def _recover(self):
+ self.warning("Pipeline error detected during playback, resetting")
self.pendingRecovery = True
self._pipeline.set_state(Gst.State.NULL)
self._pipeline.set_state(Gst.State.PAUSED)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]