summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-10 11:50:14 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-10 11:50:14 +0100
commit5e65f53c6064a6eb977cdcf8a735a22f9a0deb7a (patch)
tree07d67b86bd33f9a6dd9bccd4b19de853645af7b2 /streamer.c
parent46aff62aae4282d18073685fe9316a9302fc41f0 (diff)
fixed playlist redraw issue
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/streamer.c b/streamer.c
index 584b8597..0a3ec188 100644
--- a/streamer.c
+++ b/streamer.c
@@ -36,8 +36,8 @@
#include "volume.h"
#include "vfs.h"
-//#define trace(...) { fprintf(stderr, __VA_ARGS__); }
-#define trace(fmt,...)
+#define trace(...) { fprintf(stderr, __VA_ARGS__); }
+//#define trace(fmt,...)
static intptr_t streamer_tid;
static int src_quality;
@@ -133,11 +133,12 @@ streamer_set_current (playItem_t *it) {
if (to != -1) {
messagepump_push (M_TRACKCHANGED, 0, to, 0);
}
+#if 0
+ // this breaks redraw
if (!orig_playing_song || p_isstopped ()) {
orig_playing_song = it;
- //trace ("from=%d, to=%d\n", from, to);
- //messagepump_push (M_SONGCHANGED, 0, from, to);
}
+#endif
trace ("streamer_set_current %p, buns=%d\n", it);
if(str_streaming_song.decoder) {
str_streaming_song.decoder->free ();
@@ -241,9 +242,6 @@ streamer_set_nextsong (int song, int pstate) {
// no sense to wait until end of previous song, reset buffer
bytes_until_next_song = 0;
playpos = 0;
- // try to interrupt file operation
- streamer_lock ();
- streamer_unlock ();
}
}