mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Do not truncate FLAC playback.
If "finish" is set, play until the buffer is empty.
This commit is contained in:
@@ -70,7 +70,7 @@ FLACTranscode::processData( const QByteArray& data, bool finish )
|
|||||||
m_buffer.append( data );
|
m_buffer.append( data );
|
||||||
m_mutex.unlock();
|
m_mutex.unlock();
|
||||||
|
|
||||||
while ( m_buffer.size() >= FLAC_BUFFER )
|
while ( m_buffer.size() >= FLAC_BUFFER || ( finish && !m_buffer.isEmpty() ) )
|
||||||
{
|
{
|
||||||
process_single();
|
process_single();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user