diff options
author | waker <wakeroid@gmail.com> | 2009-08-08 14:40:50 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-08 14:40:50 +0200 |
commit | 65fa3ad73a984a9761afc36e31e33804cc471025 (patch) | |
tree | dcf94eb0502c2be15589cdf2cba12f2c646f072c /streamer.c | |
parent | ebce9029317b1a9cc793728eefc8f844de184876 (diff) |
playlist order and looping mode + GUI
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; } } |