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