$NetBSD: patch-af,v 1.2 2007/06/10 06:29:48 obache Exp $

--- shell/rb-shell-player.c.orig	2007-02-06 11:33:59.000000000 +0000
+++ shell/rb-shell-player.c
@@ -570,10 +570,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);
 }
@@ -1133,13 +1131,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);
