avformat/hlsenc: Call avio_flush during persistent http connections

Since close is not called, during http persistent connection,
flush needs to be called so that output is written on time.

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
Karthick J 2017-12-15 21:24:08 +08:00 committed by Steven Liu
parent 3c6dc27035
commit deceb7d9ae

View File

@ -266,6 +266,8 @@ static void hlsenc_io_close(AVFormatContext *s, AVIOContext **pb, char *filename
if (!http_base_proto || !hls->http_persistent || hls->key_info_file || hls->encrypt) {
ff_format_io_close(s, pb);
} else {
avio_flush(*pb);
}
}