From b6995ca0113611613d311250eabfc354658d46a7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 3 Nov 2009 21:08:48 +0100 Subject: player_control: removed the global variable "pc" Allocate a player_control object where needed, and pass it around. Each "client" object is associated with a "player_control" instance. This prepares multi-player support. --- src/playlist_global.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/playlist_global.c') diff --git a/src/playlist_global.c b/src/playlist_global.c index 2833b62ed..1ff9f8f21 100644 --- a/src/playlist_global.c +++ b/src/playlist_global.c @@ -26,6 +26,7 @@ #include "playlist.h" #include "playlist_state.h" #include "event_pipe.h" +#include "main.h" struct playlist g_playlist; @@ -38,7 +39,7 @@ playlist_tag_event(void) static void playlist_event(void) { - playlist_sync(&g_playlist); + playlist_sync(&g_playlist, global_player_control); } void -- cgit v1.2.3