summaryrefslogtreecommitdiff
path: root/transcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'transcode.c')
-rw-r--r--transcode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/transcode.c b/transcode.c
index 20f91b5..636f8d7 100644
--- a/transcode.c
+++ b/transcode.c
@@ -76,6 +76,9 @@ void transcode(GInputStream *input, const struct decoder_plugin *_decoder,
* if the decoder isn't done yet
*/
encode_done = decode_done;
+ if(encode_done == TRUE) {
+ encoder_flush(encoder, output, &error);
+ }
} else {
g_warning(error->message);
break;