aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:14 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:14 +0200
commit1c196478b6258f666cbc3efb9bccc60c595949fe (patch)
treecd825b5f162132a8412df8e9e44eb1bbab2c6764 /src/decode.c
parentcf139dc012fe592d6e6d6165d536392e02dcb759 (diff)
downloadmpd-1c196478b6258f666cbc3efb9bccc60c595949fe.tar.gz
mpd-1c196478b6258f666cbc3efb9bccc60c595949fe.tar.xz
mpd-1c196478b6258f666cbc3efb9bccc60c595949fe.zip
added flag "decoder.seeking"
This flag is used internally; it is set by decoder_seek_where(), and indicates that the decoder plugin has begun the seek process. It is used for the case that the decoder plugin has to read data during the seek process. Before this patch, that was impossible, because decoder_read() would refuse to read data unless dc->command is NONE. This patch is kind of a dirty workaround, and needs to be redesigned later.
Diffstat (limited to 'src/decode.c')
-rw-r--r--src/decode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/decode.c b/src/decode.c
index 97896f67d..33f01701a 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -50,6 +50,8 @@ static void decodeStart(void)
goto stop_no_close;
}
+ decoder.seeking = 0;
+
dc.state = DECODE_STATE_START;
dc.command = DECODE_COMMAND_NONE;