From 5a52e9135087e1e28ef7f5a4e5282fec439fe866 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 4 Sep 2012 12:49:02 +0200 Subject: decoder/ogg_common: pass decoder to _type_detect() Allow the function to be cancelled. --- src/decoder/vorbis_decoder_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder/vorbis_decoder_plugin.c') 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 -- cgit v1.2.3