Code

screen_play: no song means id=-1
authorMax Kellermann <max@duempel.org>
Sun, 28 Sep 2008 08:57:11 +0000 (10:57 +0200)
committerMax Kellermann <max@duempel.org>
Sun, 28 Sep 2008 08:57:11 +0000 (10:57 +0200)
commitd97634730540ae063746c5c59dc87d7299719171
treec8cbf32eba54c1a6da5917a61fbbd74f5b7426f4
parent6ca92d80ddb859fef30f45c71556f5296127875f
screen_play: no song means id=-1

"prev_song_id" and "current_song_id" had value 0 if MPD was not
playing at all.  This way, ncmpc cannot see the difference between
"song 0 playing" and "not playing".  Change "not playing" to -1.
src/screen_play.c