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:
parent
84019e5d11
commit
3182a294d7
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user