From 9bad257e6f5f34e4934019169f04726639445c12 Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Sun, 29 Sep 2013 19:34:13 +0300 Subject: demux_flac: implement flac_length_callback() --- src/combined/flac_demuxer.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/combined/flac_demuxer.c b/src/combined/flac_demuxer.c index abf694fe2..229245571 100644 --- a/src/combined/flac_demuxer.c +++ b/src/combined/flac_demuxer.c @@ -97,6 +97,8 @@ typedef struct demux_flac_class_s { } demux_flac_class_t; +void *demux_flac_init_class (xine_t *xine, void *data); + /* FLAC Callbacks */ static #ifdef LEGACY_FLAC @@ -227,6 +229,10 @@ flac_length_callback (const FLAC__SeekableStreamDecoder *decoder, offset = input->get_length (input); + if (offset > 0) { + *stream_length = offset; + } + /* FIXME, can flac handle -1 as offset ? */ #ifdef LEGACY_FLAC return FLAC__SEEKABLE_STREAM_DECODER_LENGTH_STATUS_OK; -- cgit v1.2.3