$NetBSD: patch-af,v 1.1 2006/07/02 11:32:40 drochner Exp $

--- shell/rb-shell-player.c.orig	2006-04-22 12:44:25.000000000 +0200
+++ shell/rb-shell-player.c
@@ -903,10 +903,8 @@ rb_shell_player_open_playlist_url (RBShe
 		rb_player_play (player->priv->mmplayer, &error);
 
 	if (error) {
-		GDK_THREADS_ENTER ();
 		rb_shell_player_error (player, TRUE, error);
 		g_error_free (error);
-		GDK_THREADS_LEAVE ();
 	}
 	g_idle_add ((GSourceFunc) notify_playing_idle, player);
 }
@@ -958,13 +956,17 @@ open_location_thread (OpenLocationThread
 
 			location = g_queue_pop_head (data->player->priv->playlist_urls);
 			rb_debug ("playing first stream url %s", data->location);
+			GDK_THREADS_ENTER ();
 			rb_shell_player_open_playlist_url (data->player, location);
+			GDK_THREADS_LEAVE ();
 			g_free (location);
 		}
 	} else {
 		/* if we can't parse it as a playlist, just try playing it */
 		rb_debug ("playlist parser failed, playing %s directly", data->location);
+		GDK_THREADS_ENTER ();
 		rb_shell_player_open_playlist_url (data->player, data->location);
+		GDK_THREADS_LEAVE ();
 	}
 
 	g_free (data);
