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:
parent
c0787cc984
commit
0692f6cd0a
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue