diff options
author | waker <wakeroid@gmail.com> | 2009-08-08 13:56:28 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-08 13:56:28 +0200 |
commit | a55df275a9d859169499c8e031429f2207197deb (patch) | |
tree | 1c280421d7cfedc60c5e816522a104432d3a1cd8 /streamer.c | |
parent | 7bfe216b85c93e2050c139ff48dc099db78a0a0b (diff) |
added shuffle support (default by now)
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -53,16 +53,14 @@ streamer_thread (uintptr_t ctx) { usleep (3000); } } - if (pstate >= 0) { - if (pstate == 0) { - p_stop (); - } - else if (pstate == 1) { - p_play (); - } - else if (pstate == 2) { - p_pause (); - } + if (pstate == 0) { + p_stop (); + } + else if (pstate == 1) { + p_play (); + } + else if (pstate == 2) { + p_pause (); } } streamer_lock (); @@ -226,6 +224,7 @@ streamer_read_async (char *bytes, int size) { while (ps_nextsong () < 0) { usleep (3000); } + break; } } return initsize - size; |