From 817a68b2b27dc65fb5fc550c83117832e8048c6f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:07 +0200 Subject: added decoder_get_command() Another big patch which hides internal mpd APIs from decoder plugins: decoder plugins regularly poll dc->command; expose it with a decoder_api.h function. --- src/inputPlugins/_flac_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inputPlugins/_flac_common.c') diff --git a/src/inputPlugins/_flac_common.c b/src/inputPlugins/_flac_common.c index 1cf094651..613c84154 100644 --- a/src/inputPlugins/_flac_common.c +++ b/src/inputPlugins/_flac_common.c @@ -178,7 +178,7 @@ void flac_error_common_cb(const char *plugin, const FLAC__StreamDecoderErrorStatus status, mpd_unused FlacData * data) { - if (dc.command == DECODE_COMMAND_STOP) + if (decoder_get_command(data->decoder) == DECODE_COMMAND_STOP) return; switch (status) { -- cgit v1.2.3