aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/flac/decoder_flac.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-06-30 07:12:49 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-06-30 07:12:49 +0000
commitd0b331da0f1f1d2465d3f895fa13ef1389b559ad (patch)
treea39470a508aa0c9644d176e2fef096b474023d53 /src/plugins/Input/flac/decoder_flac.h
parent627c20692eb11eeecb7628c812480fe46db3191d (diff)
downloadqmmp-d0b331da0f1f1d2465d3f895fa13ef1389b559ad.tar.gz
qmmp-d0b331da0f1f1d2465d3f895fa13ef1389b559ad.tar.bz2
qmmp-d0b331da0f1f1d2465d3f895fa13ef1389b559ad.zip
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
Diffstat (limited to 'src/plugins/Input/flac/decoder_flac.h')
-rw-r--r--src/plugins/Input/flac/decoder_flac.h7
1 files changed, 4 insertions, 3 deletions
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;
};