aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorKarthick J <kjeyapal@akamai.com>2017-12-15 21:24:08 +0800
committerSteven Liu <lq@chinaffmpeg.org>2017-12-15 22:14:43 +0800
commitdeceb7d9aeb7d00bc0078638925a38614c3f607b (patch)
tree56d08070f5486721d50aab4b904aa39af4cc429a /libavformat/hlsenc.c
parent3c6dc270355f27645cf931fae1ed2dc1405507f8 (diff)
downloadffmpeg-deceb7d9aeb7d00bc0078638925a38614c3f607b.tar.gz
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>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index fdf614bdd1..30d0285c32 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -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);
}
}