diff options
Diffstat (limited to 'src/inputPlugins/audiofile_plugin.c')
-rw-r--r-- | src/inputPlugins/audiofile_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inputPlugins/audiofile_plugin.c b/src/inputPlugins/audiofile_plugin.c index 6b8e4e2bd..c75c189c7 100644 --- a/src/inputPlugins/audiofile_plugin.c +++ b/src/inputPlugins/audiofile_plugin.c @@ -90,7 +90,7 @@ static int audiofile_decode(struct decoder * decoder, char *path) decoder_initialized(decoder, &audio_format, total_time); do { - if (dc.command == DECODE_COMMAND_SEEK) { + if (decoder_get_command(decoder) == DECODE_COMMAND_SEEK) { decoder_clear(decoder); current = dc.seekWhere * audio_format.sampleRate; @@ -108,7 +108,7 @@ static int audiofile_decode(struct decoder * decoder, char *path) chunk, ret * fs, (float)current / (float)audio_format.sampleRate, bitRate, NULL); - } while (dc.command != DECODE_COMMAND_STOP); + } while (decoder_get_command(decoder) != DECODE_COMMAND_STOP); decoder_flush(decoder); |