mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-22 08:52:12 +02:00
* Try to buffer FLACs till we got transcoding running.
This commit is contained in:
parent
02f114de86
commit
a42c317209
@ -79,9 +79,9 @@ FLACTranscode::read_callback( FLAC__byte buffer[], size_t *bytes )
|
||||
memcpy( buffer, (char*)m_buffer.data(), *bytes );
|
||||
m_buffer.remove( 0, *bytes );
|
||||
|
||||
if ( !*bytes )
|
||||
return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
|
||||
else
|
||||
// if ( !*bytes )
|
||||
// return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
|
||||
// else
|
||||
return FLAC__STREAM_DECODER_READ_STATUS_CONTINUE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user