summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-27 20:10:58 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-27 20:10:58 +0200
commit0569faa14f7d05379462042b7d0b11f7ce84dc5d (patch)
tree5bc52635c1ec54db45450d923105446826446971 /playlist.c
parent276b4c66d5567e1d6b78e9445f9fd546b2b93176 (diff)
pressing stop now redraws stopped item properly
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/playlist.c b/playlist.c
index 66b3a669..22424649 100644
--- a/playlist.c
+++ b/playlist.c
@@ -583,7 +583,7 @@ int
pl_set_current (playItem_t *it) {
int ret = 0;
int from = pl_get_idx_of (playlist_current_ptr);
- int to = pl_get_idx_of (it);
+ int to = it ? pl_get_idx_of (it) : -1;
#if 0
// this produces some kind of bug in the beginning of track
if (it == playlist_current_ptr) {
@@ -616,9 +616,9 @@ pl_set_current (playItem_t *it) {
}
if (it) {
pl_item_copy (&playlist_current, it);
+ it->played = 1;
}
codec_unlock ();
- it->played = 1;
messagepump_push (M_SONGCHANGED, 0, from, to);
return ret;
}