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
This commit is contained in:
Eric Wong 2007-09-07 01:17:09 +00:00
parent 45c9989849
commit 251216a552

View File

@ -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) {