diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-07-19 19:08:47 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-07-19 19:08:47 +0000 |
| commit | 934373ccc87d3ca64206902528749fcf7ad01b4e (patch) | |
| tree | c309780807af8d23b6f1e2c1e2dfc35d92e0f3a6 /src/plugins/Input/vorbis/decoder_vorbis.cpp | |
| parent | 0381c9156f08dc090ea46c289a2910ca2a9afbdd (diff) | |
| download | qmmp-934373ccc87d3ca64206902528749fcf7ad01b4e.tar.gz qmmp-934373ccc87d3ca64206902528749fcf7ad01b4e.tar.bz2 qmmp-934373ccc87d3ca64206902528749fcf7ad01b4e.zip | |
mpeg plugin: fixed problem with small files
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1048 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/vorbis/decoder_vorbis.cpp')
| -rw-r--r-- | src/plugins/Input/vorbis/decoder_vorbis.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/Input/vorbis/decoder_vorbis.cpp b/src/plugins/Input/vorbis/decoder_vorbis.cpp index fdbfd1432..e1e431f94 100644 --- a/src/plugins/Input/vorbis/decoder_vorbis.cpp +++ b/src/plugins/Input/vorbis/decoder_vorbis.cpp @@ -224,9 +224,8 @@ qint64 DecoderVorbis::readAudio(char *data, qint64 maxSize) { len = -1; while (len < 0) - { - len = ov_read(&oggfile, data, maxSize, 0, 2, 1, &m_section); - } + len = ov_read(&oggfile, data, maxSize, 0, 2, 1, &m_section); + if (m_section != m_last_section) updateTags(); m_last_section = m_section; |
