[gnome-music/wip/jfelder/gstplayer-asynchronous-state: 2/3] player: Add some debug messages
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/gstplayer-asynchronous-state: 2/3] player: Add some debug messages
- Date: Tue, 9 Jun 2020 11:18:28 +0000 (UTC)
commit 7c95224c8f0abb279533d8bd51f985c3beb332e1
Author: Jean Felder <jfelder src gnome org>
Date: Thu May 28 17:23:45 2020 +0200
player: Add some debug messages
gnomemusic/player.py | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 7104fcac..a550b56b 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -412,6 +412,7 @@ class Player(GObject.GObject):
def _on_about_to_finish(self, klass):
if self.props.has_next:
+ self._log.debug("Song is about to finish, loading the next one.")
next_coresong = self._playlist.get_next()
new_url = next_coresong.props.url
self._gst_player.props.url = new_url
@@ -423,9 +424,11 @@ class Player(GObject.GObject):
if self._gapless_set:
# After 'eos' in the gapless case, the pipeline needs to be
# hard reset.
+ self._log.debug("Song finished, loading the next one.")
self.stop()
self.play(self.props.current_song)
else:
+ self._log.debug("End of the playlist, stopping the player.")
self.stop()
self._gapless_set = False
@@ -450,6 +453,7 @@ class Player(GObject.GObject):
self.emit("song-changed")
def _load(self, coresong):
+ self._log.debug("Loading song {}".format(coresong.props.title))
self._gst_player.props.state = Playback.LOADING
self._time_stamp = int(time.time())
self._gst_player.props.url = coresong.props.url
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]