diff options
author | Eric Wong <normalperson@yhbt.net> | 2007-09-07 01:17:09 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2007-09-07 01:17:09 +0000 |
commit | 251216a552a57e84b53e993e671e62f9539a7610 (patch) | |
tree | 76b8c3d1aca5bc94c9c8acf6ad837f1c74f85aaa | |
parent | 45c99898494691f5070eee81f0f11b945ea81a07 (diff) | |
download | mpd-251216a552a57e84b53e993e671e62f9539a7610.tar.gz mpd-251216a552a57e84b53e993e671e62f9539a7610.tar.xz mpd-251216a552a57e84b53e993e671e62f9539a7610.zip |
decode: fix seek when paused
We need to SIGCONT the decoder process to allow for seeking
while paused.
git-svn-id: https://svn.musicpd.org/mpd/trunk@6864 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r-- | src/decode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/decode.c b/src/decode.c index bf3e1cb25..ab255e3c6 100644 --- a/src/decode.c +++ b/src/decode.c @@ -208,6 +208,7 @@ static int decodeSeek(PlayerControl * pc, DecoderControl * dc, dc->seekWhere = 0 > dc->seekWhere ? 0 : dc->seekWhere; dc->seekError = 0; dc->seek = 1; + kill(decode_pid, SIGCONT); while (decode_pid > 0 && dc->seek) my_usleep(10000); if (!dc->seekError) { |