aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-04-11 03:12:00 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-04-11 03:12:00 +0000
commitc77011bf2a2521b97024e0fd1ca48c5a73439175 (patch)
treebd84660750c55d739d729316ed2b76699c0e772d /src/command.c
parent4cfd77be95658167467163bf5c87fd5957ee71f1 (diff)
downloadmpd-c77011bf2a2521b97024e0fd1ca48c5a73439175.tar.gz
mpd-c77011bf2a2521b97024e0fd1ca48c5a73439175.tar.xz
mpd-c77011bf2a2521b97024e0fd1ca48c5a73439175.zip
update job id stuff
git-svn-id: https://svn.musicpd.org/mpd/trunk@673 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 4259b58e7..f61cb7630 100644
--- a/src/command.c
+++ b/src/command.c
@@ -165,6 +165,7 @@ int commandStatus(FILE * fp, unsigned int * permission, int argArrayLength,
char ** argArray)
{
char * state = NULL;
+ int updateJobId;
playPlaylistIfPlayerStopped();
switch(getPlayerState()) {
@@ -194,7 +195,9 @@ int commandStatus(FILE * fp, unsigned int * permission, int argArrayLength,
myfprintf(fp,"%s: %u:%i:%i\n",COMMAND_STATUS_AUDIO,getPlayerSampleRate(),getPlayerBits(),getPlayerChannels());
}
- if(isUpdatingDB()) myfprintf(fp,"%s: 1\n",COMMAND_STATUS_UPDATING_DB);
+ if((updateJobId = isUpdatingDB())) {
+ myfprintf(fp,"%s: %i\n",COMMAND_STATUS_UPDATING_DB,updateJobId);
+ }
if(getPlayerError()!=PLAYER_ERROR_NOERROR) {
myfprintf(fp,"%s: %s\n",COMMAND_STATUS_ERROR,getPlayerErrorStr());