summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/streamer.c b/streamer.c
index 7796b3e2..02d8694d 100644
--- a/streamer.c
+++ b/streamer.c
@@ -48,11 +48,14 @@ streamer_thread (uintptr_t ctx) {
//streambuffer_fill = 0;
codecleft = 0;
codec_unlock ();
+ ps_set_current (ps_get_for_idx (sng));
+#if 0
if (ps_set_current (ps_get_for_idx (sng)) < 0) {
while (ps_nextsong () < 0) {
usleep (3000);
}
}
+#endif
if (pstate == 0) {
p_stop ();
}
@@ -221,9 +224,12 @@ streamer_read_async (char *bytes, int size) {
}
else {
// that means EOF
- while (ps_nextsong () < 0) {
+ ps_nextsong (0);
+#if 0
+ while (ps_nextsong (0) < 0) {
usleep (3000);
}
+#endif
break;
}
}