buffer should only be available when m_buffersAvailable > 0.

Change-Id: I730fcbf6aa4fc446d12c64fcb7cfd410be96a20d
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
bigbearzhu
2012-04-16 12:15:07 +10:00
committed by Qt by Nokia
parent 3d89cae052
commit 8441d2e32e

View File

@@ -470,7 +470,7 @@ QAudioBuffer QGstreamerAudioDecoderSession::read()
bool QGstreamerAudioDecoderSession::bufferAvailable() const
{
QMutexLocker locker(&m_buffersMutex);
return m_buffersAvailable;
return m_buffersAvailable > 0;
}
qint64 QGstreamerAudioDecoderSession::position() const