aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_play.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen_play.c')
-rw-r--r--src/screen_play.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screen_play.c b/src/screen_play.c
index 25e82c7ee..1bc2034b8 100644
--- a/src/screen_play.c
+++ b/src/screen_play.c
@@ -418,15 +418,15 @@ play_paint(mpdclient_t *c)
static void
play_update(mpdclient_t *c)
{
- static int prev_song_id;
+ static int prev_song_id = -1;
int current_song_id = c->song != NULL && c->status != NULL &&
- !IS_STOPPED(c->status->state) ? c->song->id : 0;
+ !IS_STOPPED(c->status->state) ? c->song->id : -1;
if (current_song_id != prev_song_id) {
prev_song_id = current_song_id;
/* center the cursor */
- if (options.auto_center && current_song_id != 0)
+ if (options.auto_center && current_song_id != -1)
center_playing_item(c);
playlist_repaint(c);