1
0
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:
Christian Muehlhaeuser 2010-11-26 14:22:09 +01:00
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;
}