1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-25 10:19:41 +01:00

Do not truncate FLAC playback.

If "finish" is set, play until the buffer is empty.
This commit is contained in:
Frank Osterfeld 2011-04-20 23:30:44 +02:00
parent 84019e5d11
commit 3182a294d7

View File

@ -70,7 +70,7 @@ FLACTranscode::processData( const QByteArray& data, bool finish )
m_buffer.append( data );
m_mutex.unlock();
while ( m_buffer.size() >= FLAC_BUFFER )
while ( m_buffer.size() >= FLAC_BUFFER || ( finish && !m_buffer.isEmpty() ) )
{
process_single();
}