[rhythmbox] shell-player: remove cancellable for parsing when no longer needed



commit ddd4b6ae13553bdb733da1f3e7f7683fab0f51f3
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sat Nov 6 11:47:00 2010 +1000

    shell-player: remove cancellable for parsing when no longer needed
    
    Fixes unpausing of local files and other stuff after playing radio streams.

 shell/rb-shell-player.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/shell/rb-shell-player.c b/shell/rb-shell-player.c
index f4e40af..2301e99 100644
--- a/shell/rb-shell-player.c
+++ b/shell/rb-shell-player.c
@@ -1635,6 +1635,11 @@ rb_shell_player_open_location (RBShellPlayer *player,
 
 		g_thread_create ((GThreadFunc)open_location_thread, data, FALSE, NULL);
 	} else {
+		if (player->priv->parser_cancellable != NULL) {
+			g_object_unref (player->priv->parser_cancellable);
+			player->priv->parser_cancellable = NULL;
+		}
+
 		rhythmdb_entry_ref (entry);
 		ret = ret && rb_player_open (player->priv->mmplayer, location, entry, (GDestroyNotify) rhythmdb_entry_unref, error);
 



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