summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-08 14:40:50 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-08 14:40:50 +0200
commit65fa3ad73a984a9761afc36e31e33804cc471025 (patch)
treedcf94eb0502c2be15589cdf2cba12f2c646f072c /streamer.c
parentebce9029317b1a9cc793728eefc8f844de184876 (diff)
playlist order and looping mode + GUI
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;
}
}