From d0b331da0f1f1d2465d3f895fa13ef1389b559ad Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 30 Jun 2017 07:12:49 +0000 Subject: flac: fixed segmentation fault on Ogg FLAC streams (#920) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7272 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/flac/decoder_flac.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/plugins/Input/flac/decoder_flac.h') diff --git a/src/plugins/Input/flac/decoder_flac.h b/src/plugins/Input/flac/decoder_flac.h index ad0203f66..5147d5da0 100644 --- a/src/plugins/Input/flac/decoder_flac.h +++ b/src/plugins/Input/flac/decoder_flac.h @@ -35,7 +35,6 @@ struct flac_data { //FLAC__SeekableStreamDecoder *decoder; FLAC__StreamDecoder *decoder; - struct io_stream *stream; int bitrate; int abort; /* abort playing (due to an error) */ @@ -52,8 +51,10 @@ struct flac_data FLAC__uint64 last_decode_position; - int ok; /* was this stream successfully opened? */ - //struct decoder_error error; + //counters + qint64 read_bytes; + qint64 frame_counter; + QIODevice *input; }; -- cgit v1.2.3-13-gbd6f