ref: b7cd8aaf92e2fdfb25f6648c8c3119be6078120a
parent: 5c2640cdff7dd3a2af6ce5294de8d7a36a18f1eb
author: Jean-Marc Valin <[email protected]>
date: Tue May 2 08:50:21 EDT 2017
wip
--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -432,8 +432,8 @@
/* Ends the stream and create a new stream within the same file. */
int ope_chain_current(OggOpusEnc *enc) {
- (void)enc;
- return OPE_UNIMPLEMENTED;
+ /* FIXME: Make sure we don't end up calling the close callback too early. */
+ return ope_continue_new_callbacks(enc, enc->user_data);
}
/* Ends the stream and create a new file. */
@@ -483,6 +483,7 @@
int ope_flush_header(OggOpusEnc *enc) {
if (enc->stream_is_init) return OPE_TOO_LATE;
else init_stream(enc);
+ return OPE_OK;
}
/* Goes straight to the libopus ctl() functions. */