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>
pull/274/head
Karthick J 7 years ago committed by Steven Liu
parent 3c6dc27035
commit deceb7d9ae
  1. 2
      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);
}
}

Loading…
Cancel
Save