Commit 251216a5 authored by Eric Wong's avatar Eric Wong

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
parent 45c99898
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment