diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-03-18 04:01:37 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2006-03-18 04:01:37 +0000 |
commit | 0e793b510a2a61759cccf4caa38d9651eae1018b (patch) | |
tree | fd23fef78584a66ca6852895ecbd827ab8de68ab /src/command.c | |
parent | 17d3ccbaa3f22c4c0f8a86515d71fc017a451bbd (diff) | |
download | mpd-0e793b510a2a61759cccf4caa38d9651eae1018b.tar.gz mpd-0e793b510a2a61759cccf4caa38d9651eae1018b.tar.xz mpd-0e793b510a2a61759cccf4caa38d9651eae1018b.zip |
merge up to r3928, branch should be closeable unless there aresvn/oggflac
major issues that need to be addressed.
git-svn-id: https://svn.musicpd.org/mpd/branches/oggflac@3929 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/command.c b/src/command.c index 0179f9865..156e02197 100644 --- a/src/command.c +++ b/src/command.c @@ -237,13 +237,13 @@ int commandStatus(FILE * fp, unsigned int * permission, int argArrayLength, playPlaylistIfPlayerStopped(); switch(getPlayerState()) { case PLAYER_STATE_STOP: - state = strdup(COMMAND_STOP); + state = COMMAND_STOP; break; case PLAYER_STATE_PAUSE: - state = strdup(COMMAND_PAUSE); + state = COMMAND_PAUSE; break; case PLAYER_STATE_PLAY: - state = strdup(COMMAND_PLAY); + state = COMMAND_PLAY; break; } @@ -277,8 +277,6 @@ int commandStatus(FILE * fp, unsigned int * permission, int argArrayLength, myfprintf(fp,"%s: %s\n",COMMAND_STATUS_ERROR,getPlayerErrorStr()); } - free(state); - return 0; } |