1
0
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:
Christian Muehlhaeuser
2010-11-26 14:22:09 +01:00
parent 02f114de86
commit a42c317209

View File

@@ -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;
} }