From fd2f9b8e862c827b2b3e3c818d153bc2d9e8c99b Mon Sep 17 00:00:00 2001 From: Avuton Olrich Date: Fri, 14 Jul 2006 20:40:25 +0000 Subject: Fix the undefined reference to `playerInitReal' git-svn-id: https://svn.musicpd.org/mpd/trunk@4343 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/player.c | 2 +- src/player.h | 2 ++ src/playerData.c | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/player.c b/src/player.c index c7dff3456..7ac7d64aa 100644 --- a/src/player.c +++ b/src/player.c @@ -102,7 +102,7 @@ int playerInit() { return 0; } -static int playerInitReal() { +int playerInitReal() { int player_pid; blockSignals(); player_pid = fork(); diff --git a/src/player.h b/src/player.h index c347dceaf..3ea6f5a73 100644 --- a/src/player.h +++ b/src/player.h @@ -89,6 +89,8 @@ typedef struct _PlayerControl { MetadataChunk fileMetadataChunk; } PlayerControl; +int playerInitReal(); + void player_sigChldHandler(int pid, int status); int playerPlay(FILE * fp, Song * song); diff --git a/src/playerData.c b/src/playerData.c index 9e896ac9c..237c9036b 100644 --- a/src/playerData.c +++ b/src/playerData.c @@ -33,7 +33,7 @@ int buffered_chunks; #define DEFAULT_BUFFER_SIZE 2048 #define DEFAULT_BUFFER_BEFORE_PLAY 0 -PlayerData * playerData_pd; +static PlayerData * playerData_pd; int * player_pid; void initPlayerData() { @@ -152,7 +152,7 @@ void initPlayerData() { playerData_pd->playerControl.totalPlayTime = 0; playerData_pd->playerControl.decode_pid = 0; playerData_pd->playerControl.metadataState = - PLAYER_METADATA_STATE_WRITE; + PLAYER_METADATA_STATE_WRITE; playerData_pd->decoderControl.stop = 0; playerData_pd->decoderControl.start = 0; -- cgit v1.2.3