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:
parent
fdf1afc8b3
commit
fd2f9b8e86
@ -102,7 +102,7 @@ int playerInit() {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int playerInitReal() {
|
int playerInitReal() {
|
||||||
int player_pid;
|
int player_pid;
|
||||||
blockSignals();
|
blockSignals();
|
||||||
player_pid = fork();
|
player_pid = fork();
|
||||||
|
@ -89,6 +89,8 @@ typedef struct _PlayerControl {
|
|||||||
MetadataChunk fileMetadataChunk;
|
MetadataChunk fileMetadataChunk;
|
||||||
} PlayerControl;
|
} PlayerControl;
|
||||||
|
|
||||||
|
int playerInitReal();
|
||||||
|
|
||||||
void player_sigChldHandler(int pid, int status);
|
void player_sigChldHandler(int pid, int status);
|
||||||
|
|
||||||
int playerPlay(FILE * fp, Song * song);
|
int playerPlay(FILE * fp, Song * song);
|
||||||
|
@ -33,7 +33,7 @@ int buffered_chunks;
|
|||||||
#define DEFAULT_BUFFER_SIZE 2048
|
#define DEFAULT_BUFFER_SIZE 2048
|
||||||
#define DEFAULT_BUFFER_BEFORE_PLAY 0
|
#define DEFAULT_BUFFER_BEFORE_PLAY 0
|
||||||
|
|
||||||
PlayerData * playerData_pd;
|
static PlayerData * playerData_pd;
|
||||||
int * player_pid;
|
int * player_pid;
|
||||||
|
|
||||||
void initPlayerData() {
|
void initPlayerData() {
|
||||||
@ -152,7 +152,7 @@ void initPlayerData() {
|
|||||||
playerData_pd->playerControl.totalPlayTime = 0;
|
playerData_pd->playerControl.totalPlayTime = 0;
|
||||||
playerData_pd->playerControl.decode_pid = 0;
|
playerData_pd->playerControl.decode_pid = 0;
|
||||||
playerData_pd->playerControl.metadataState =
|
playerData_pd->playerControl.metadataState =
|
||||||
PLAYER_METADATA_STATE_WRITE;
|
PLAYER_METADATA_STATE_WRITE;
|
||||||
|
|
||||||
playerData_pd->decoderControl.stop = 0;
|
playerData_pd->decoderControl.stop = 0;
|
||||||
playerData_pd->decoderControl.start = 0;
|
playerData_pd->decoderControl.start = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user