diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-07-04 15:33:13 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-07-04 15:33:13 +0200 |
commit | cc01765399ded783c9d42802e1797558e1167748 (patch) | |
tree | 7314361b4a126f1b8ed83f75a3a91b3ac957efcf | |
parent | 9ec6f35b66e81b5901f8d62ac7bb3bd958d41091 (diff) |
fixed oss pause/unpause
-rw-r--r-- | plugins/oss/oss.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/plugins/oss/oss.c b/plugins/oss/oss.c index ee0ca8aa..6c1045bf 100644 --- a/plugins/oss/oss.c +++ b/plugins/oss/oss.c @@ -194,23 +194,14 @@ oss_pause (void) { return -1; } // set pause state + oss_free(); state = OUTPUT_STATE_PAUSED; - return oss_free(); + return 0; } static int oss_unpause (void) { - // unset pause state - if (state == OUTPUT_STATE_PAUSED) { - - if (!oss_tid) { - if(oss_init() < 0) { - return -1; - } - } - - state = OUTPUT_STATE_PLAYING; - } + oss_play (); return 0; } |