aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/vorbis_decoder_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-09-04 12:49:02 +0200
committerMax Kellermann <max@duempel.org>2012-09-04 12:49:02 +0200
commit5a52e9135087e1e28ef7f5a4e5282fec439fe866 (patch)
treec4d5f4ca39652594fef5111ceca9cb8cdd0b6e4b /src/decoder/vorbis_decoder_plugin.c
parent18e458154a25d41b2b18862d18f417e6e8e74d6b (diff)
downloadmpd-5a52e9135087e1e28ef7f5a4e5282fec439fe866.tar.gz
mpd-5a52e9135087e1e28ef7f5a4e5282fec439fe866.tar.xz
mpd-5a52e9135087e1e28ef7f5a4e5282fec439fe866.zip
decoder/ogg_common: pass decoder to _type_detect()
Allow the function to be cancelled.
Diffstat (limited to 'src/decoder/vorbis_decoder_plugin.c')
-rw-r--r--src/decoder/vorbis_decoder_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/vorbis_decoder_plugin.c b/src/decoder/vorbis_decoder_plugin.c
index 40594faad..e59f7a87f 100644
--- a/src/decoder/vorbis_decoder_plugin.c
+++ b/src/decoder/vorbis_decoder_plugin.c
@@ -184,7 +184,7 @@ vorbis_stream_decode(struct decoder *decoder,
const vorbis_info *vi;
enum decoder_command cmd = DECODE_COMMAND_NONE;
- if (ogg_stream_type_detect(input_stream) != VORBIS)
+ if (ogg_stream_type_detect(decoder, input_stream) != VORBIS)
return;
/* rewind the stream, because ogg_stream_type_detect() has