summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-03-21 21:45:09 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-03-21 21:45:09 +0100
commita3b16b779ccac616fc32638f0642d797fddc13e3 (patch)
treefd785460ee7b88961c1c10e7a4dde67326af18f5
parentae2e616470bf7b0505a23a3a4cb23f2d9e95bdb9 (diff)
fixed seekbar draw regression
-rw-r--r--streamer.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/streamer.c b/streamer.c
index 4e166a3d..24386b70 100644
--- a/streamer.c
+++ b/streamer.c
@@ -423,13 +423,15 @@ streamer_set_current (playItem_t *it) {
//trace ("from=%d, to=%d\n", from, to);
//messagepump_push (M_SONGCHANGED, 0, from, to);
}
- if (playing_track) {
- pl_item_unref (playing_track);
- }
- playing_track = it;
- if (playing_track) {
- pl_item_ref (playing_track);
- }
+
+// code below breaks seekbar drawing during transition between tracks
+// if (playing_track) {
+// pl_item_unref (playing_track);
+// }
+// playing_track = it;
+// if (playing_track) {
+// pl_item_ref (playing_track);
+// }
trace ("streamer_set_current %p, buns=%d\n", it);
mutex_lock (decodemutex);
if (fileinfo) {