diff --git a/src/status_bar.c b/src/status_bar.c
index 00724e3aae062952b1a9ab96ca74368f0c6de862..2e9449963058e00a7dec38be20a41e81249dd145 100644 (file)
--- a/src/status_bar.c
+++ b/src/status_bar.c
char elapsed_string[32], duration_string[32];
/*checks the conf to see whether to display elapsed or remaining time */
- if (song != NULL &&
- seek_id == (int)mpd_song_get_id(song))
+ if (seek_id >= 0 &&
+ seek_id == mpd_status_get_song_id(status))
elapsedTime = seek_target_time;
else if (options.display_remaining_time)
elapsedTime = total_time -