summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-01 22:50:10 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-01 22:50:10 +0100
commit542bdd08190a0ec1f4fc3acc804d84eb0a1f2410 (patch)
tree66a5662787a832d3f70548cafef1bb27ca7579bd /streamer.c
parent2dccdf377da4e527f630b05509c01217499bedce (diff)
fixed redraw after last track finishes
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/streamer.c b/streamer.c
index 9e5b690b..76a5e0f5 100644
--- a/streamer.c
+++ b/streamer.c
@@ -310,6 +310,7 @@ streamer_thread (void *ctx) {
}
}
else if (nextsong == -2 && bytes_until_next_song == 0) {
+ int from = orig_playing_song ? pl_get_idx_of (orig_playing_song) : -1;
bytes_until_next_song = -1;
trace ("nextsong=-2\n");
nextsong = -1;
@@ -321,6 +322,7 @@ streamer_thread (void *ctx) {
streamer_set_current (NULL);
pl_item_free (&str_playing_song);
orig_playing_song = NULL;
+ messagepump_push (M_SONGCHANGED, 0, from, -1);
continue;
}
else if (p_isstopped ()) {