Fix the undefined reference to `playerInitReal'

git-svn-id: https://svn.musicpd.org/mpd/trunk@4343 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Avuton Olrich 2006-07-14 20:40:25 +00:00
parent fdf1afc8b3
commit fd2f9b8e86
3 changed files with 5 additions and 3 deletions

View File

@ -102,7 +102,7 @@ int playerInit() {
return 0;
}
static int playerInitReal() {
int playerInitReal() {
int player_pid;
blockSignals();
player_pid = fork();

View File

@ -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);

View File

@ -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;