[pitivi] viewer: Improve debugging messages
- From: Mathieu Duponchelle <mathieudu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] viewer: Improve debugging messages
- Date: Mon, 10 Feb 2014 21:57:20 +0000 (UTC)
commit 538dcc749318b33e047bc031e785c9de7c0977d8
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date: Wed Jan 1 16:14:43 2014 -0500
viewer: Improve debugging messages
pitivi/viewer.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/viewer.py b/pitivi/viewer.py
index 593550b..0f5bd10 100644
--- a/pitivi/viewer.py
+++ b/pitivi/viewer.py
@@ -137,9 +137,9 @@ class ViewerContainer(Gtk.VBox, Loggable):
@type pipeline: L{Pipeline}.
@param position: Optional position to seek to initially.
"""
- self.debug("self.pipeline: %r", self.pipeline)
self._disconnectFromPipeline()
+ self.debug("New pipeline: %r", pipeline)
self.pipeline = pipeline
self.pipeline.pause()
self.seeker.seek(position)
@@ -153,7 +153,7 @@ class ViewerContainer(Gtk.VBox, Loggable):
self._setUiActive()
def _disconnectFromPipeline(self):
- self.debug("pipeline: %r", self.pipeline)
+ self.debug("Previous pipeline: %r", self.pipeline)
if self.pipeline is None:
# silently return, there's nothing to disconnect from
return
@@ -187,6 +187,7 @@ class ViewerContainer(Gtk.VBox, Loggable):
def _videoRealized(self, widget):
if widget == self.target:
+ self.log("Widget realized: %s", widget)
self._switch_output_window()
def _createUi(self):
@@ -475,7 +476,6 @@ class ViewerContainer(Gtk.VBox, Loggable):
This is meant to be called by mainwindow.
"""
- self.info("current state changed : %s", state)
if int(state) == int(Gst.State.PLAYING):
self.playpause_button.setPause()
self.system.inhibitScreensaver(self.INHIBIT_REASON)
@@ -493,9 +493,11 @@ class ViewerContainer(Gtk.VBox, Loggable):
return
if self.target.get_realized():
+ self.debug("Connecting the sink pipeline to the viewer's texture")
self.sink.props.texture = self.target.texture
else:
# Show the widget and wait for the realized callback
+ self.log("Target is not realized, showing the widget")
self.target.show()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]