player: more assertions

Just one more assertion.  There should be more of that!

git-svn-id: https://svn.musicpd.org/mpd/trunk@7204 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Max Kellermann 2008-03-26 10:37:58 +00:00 committed by Eric Wong
parent c0787cc984
commit 0692f6cd0a
1 changed files with 2 additions and 0 deletions

View File

@ -439,6 +439,8 @@ int playerSeek(int fd, Song * song, float seek_time)
PlayerControl *pc = &(getPlayerData()->playerControl);
char path_max_tmp[MPD_PATH_MAX];
assert(song != NULL);
if (pc->state == PLAYER_STATE_STOP) {
commandError(fd, ACK_ERROR_PLAYER_SYNC,
"player not currently playing");