From 3a23129ac5110d72040692b229554babc2aa2a99 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 25 Dec 2010 23:33:46 +0100 Subject: Added encoder_flush() to flush encoder buffers. --- transcode.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'transcode.c') 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; -- cgit v1.2.3