From 5e65f53c6064a6eb977cdcf8a735a22f9a0deb7a Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sun, 10 Jan 2010 11:50:14 +0100 Subject: fixed playlist redraw issue --- streamer.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'streamer.c') 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 (); } } -- cgit v1.2.3