Commit 1649c4ab authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

Encoder::Stream::set_metadata() broken - ID: 3282704
parent 8f95634b
......@@ -203,7 +203,7 @@ namespace FLAC {
for(unsigned i = 0; i < num_blocks; i++) {
// we can get away with the const_cast since we know the encoder will only correct the is_last flags
m[i] = const_cast< ::FLAC__StreamMetadata*>((const ::FLAC__StreamMetadata*)metadata[i]);
m[i] = const_cast< ::FLAC__StreamMetadata*>(static_cast<const ::FLAC__StreamMetadata*>(*metadata[i]));
// complete the hack
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment