decoder/ogg_common: pass decoder to _type_detect()

Allow the function to be cancelled.
This commit is contained in:
Max Kellermann
2012-09-04 12:49:02 +02:00
parent 18e458154a
commit 5a52e91350
4 changed files with 5 additions and 5 deletions

View File

@@ -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