From: Petri H. <phi...@us...> - 2013-09-29 16:45:05
|
# HG changeset patch # User Petri Hintukainen <phi...@us...> # Date 1380472453 -10800 # Node ID 40c9250afafae0f4f089a667f301102b3ad4479f # Branch default # Parent 74faf2bdbb12f949bc593ee03b2426f3de247f90 demux_flac: implement flac_length_callback() diff --git a/src/combined/flac_demuxer.c b/src/combined/flac_demuxer.c --- a/src/combined/flac_demuxer.c +++ b/src/combined/flac_demuxer.c @@ -97,6 +97,8 @@ } demux_flac_class_t; +void *demux_flac_init_class (xine_t *xine, void *data); + /* FLAC Callbacks */ static #ifdef LEGACY_FLAC @@ -227,6 +229,10 @@ 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; |