avformat/hlsenc: temp_file usage for master playlist and vtt playlist
authorBela Bodecs <bodecsb@vivanet.hu>
Fri, 28 Jun 2019 05:54:27 +0000 (13:54 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Fri, 28 Jun 2019 05:54:27 +0000 (13:54 +0800)
commit098ab932579ea6d81e0b928f09b425fdd00a2890
tree126c43bc5b1e8f4c1c5be5bf27a1a462d60e0c1f
parent45cfecdec645e0db0d2b8c76d6ece3860ab97c5b
avformat/hlsenc: temp_file usage for master playlist and vtt playlist

currently master playlist and subtitle playlist creation does not use
temporary files even when temp_file flag is set. Most of the use cases
it is not a problem because master playlist creation happens once on the
beginning of the whole process. But if master playlist is periodically
re-created because of master_pl_refresh_rate is set, non-atomic playlist
creation may cause problems in case of live streaming. This patch
correct this behavior by adding this functionality.

Reviewed-by: Steven Liu <lq@onvideo.cn>
Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu>
doc/muxers.texi
libavformat/hlsenc.c