[rhythmbox] shell-player: clear playlist parser cancellable when pausing



commit 98e5a25b3c32c9915357968a78783c1ac21c7130
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sun Oct 28 14:02:53 2012 +1000

    shell-player: clear playlist parser cancellable when pausing
    
    https://bugzilla.gnome.org/show_bug.cgi?id=663440

 shell/rb-shell-player.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/shell/rb-shell-player.c b/shell/rb-shell-player.c
index 1dc42c8..3ec2128 100644
--- a/shell/rb-shell-player.c
+++ b/shell/rb-shell-player.c
@@ -2378,6 +2378,10 @@ rb_shell_player_playpause (RBShellPlayer *player,
 			rb_debug ("playing source is already NULL");
 		} else if (rb_source_can_pause (player->priv->source)) {
 			rb_debug ("pausing mm player");
+			if (player->priv->parser_cancellable != NULL) {
+				g_object_unref (player->priv->parser_cancellable);
+				player->priv->parser_cancellable = NULL;
+			}
 			rb_player_pause (player->priv->mmplayer);
 			songs = rb_source_get_entry_view (player->priv->current_playing_source);
 			if (songs)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]