aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/ogg_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder/ogg_common.c')
-rw-r--r--src/decoder/ogg_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/ogg_common.c b/src/decoder/ogg_common.c
index ba1a8edea..f63bc094b 100644
--- a/src/decoder/ogg_common.c
+++ b/src/decoder/ogg_common.c
@@ -25,13 +25,13 @@
#include "ogg_common.h"
enum ogg_stream_type
-ogg_stream_type_detect(struct input_stream *is)
+ogg_stream_type_detect(struct decoder *decoder, struct input_stream *is)
{
/* oggflac detection based on code in ogg123 and this post
* http://lists.xiph.org/pipermail/flac/2004-December/000393.html
* ogg123 trunk still doesn't have this patch as of June 2005 */
unsigned char buf[41];
- size_t r = decoder_read(NULL, is, buf, sizeof(buf));
+ size_t r = decoder_read(decoder, is, buf, sizeof(buf));
if (r < sizeof(buf) || memcmp(buf, "OggS", 4) != 0)
return VORBIS;