Commit 0692f6cd authored by Max Kellermann's avatar Max Kellermann Committed by Eric Wong

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
parent c0787cc9
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment