summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-08 13:56:28 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-08 13:56:28 +0200
commita55df275a9d859169499c8e031429f2207197deb (patch)
tree1c280421d7cfedc60c5e816522a104432d3a1cd8 /streamer.c
parent7bfe216b85c93e2050c139ff48dc099db78a0a0b (diff)
added shuffle support (default by now)
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/streamer.c b/streamer.c
index a2941eee..7796b3e2 100644
--- a/streamer.c
+++ b/streamer.c
@@ -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;