if(encoder_wrapper->verify_fifo.into_frames) {
if(!FLAC__stream_decoder_process_one_frame(encoder_wrapper->verify_fifo.decoder)) {
encoder_wrapper->verify_fifo.result = FLAC__VERIFY_FAILED_IN_FRAME;
- return FLAC__STREAM_ENCODER_WRITE_FATAL_ERROR;
+ return FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR;
}
}
else {
if(!FLAC__stream_decoder_process_metadata(encoder_wrapper->verify_fifo.decoder)) {
encoder_wrapper->verify_fifo.result = FLAC__VERIFY_FAILED_IN_METADATA;
- return FLAC__STREAM_ENCODER_WRITE_FATAL_ERROR;
+ return FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR;
}
}
}
int written;
written = fwrite(encoder_wrapper->ogg.og.header, 1, encoder_wrapper->ogg.og.header_len, encoder_wrapper->fout);
if (written != encoder_wrapper->ogg.og.header_len)
- return FLAC__STREAM_ENCODER_WRITE_FATAL_ERROR;
+ return FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR;
written = fwrite(encoder_wrapper->ogg.og.body, 1, encoder_wrapper->ogg.og.body_len, encoder_wrapper->fout);
if (written != encoder_wrapper->ogg.og.body_len)
- return FLAC__STREAM_ENCODER_WRITE_FATAL_ERROR;
+ return FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR;
}
- return FLAC__STREAM_ENCODER_WRITE_OK;
+ return FLAC__STREAM_ENCODER_WRITE_STATUS_OK;
}
else
#endif
{
if(fwrite(buffer, sizeof(FLAC__byte), bytes, encoder_wrapper->fout) == bytes)
- return FLAC__STREAM_ENCODER_WRITE_OK;
+ return FLAC__STREAM_ENCODER_WRITE_STATUS_OK;
else
- return FLAC__STREAM_ENCODER_WRITE_FATAL_ERROR;
+ return FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR;
}
}
(void)encoder, (void)samples, (void)current_frame;
if(fwrite(buffer, 1, bytes, ecd->file) != bytes)
- return FLAC__STREAM_ENCODER_WRITE_FATAL_ERROR;
+ return FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR;
else
- return FLAC__STREAM_ENCODER_WRITE_OK;
+ return FLAC__STREAM_ENCODER_WRITE_STATUS_OK;
}
static void encoder_metadata_callback_(const FLAC__StreamEncoder *encoder, const FLAC__StreamMetadata *metadata, void *client_data)