From 1c196478b6258f666cbc3efb9bccc60c595949fe Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:14 +0200 Subject: 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. --- src/decoder_internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/decoder_internal.h') diff --git a/src/decoder_internal.h b/src/decoder_internal.h index 37b7b65fa..6d8bc7a87 100644 --- a/src/decoder_internal.h +++ b/src/decoder_internal.h @@ -26,6 +26,8 @@ struct decoder { struct decoder_plugin *plugin; ConvState conv_state; + + int seeking; }; #endif -- cgit v1.2.3