hlsenc: Fixing HLS_TEMP_FILE usage with HLS_SECOND_LEVEL_SEGMENT_...
authorBela Bodecs <bodecsb@vivanet.hu>
Mon, 19 Feb 2018 20:36:25 +0000 (21:36 +0100)
committerSteven Liu <lq@chinaffmpeg.org>
Fri, 23 Feb 2018 13:36:11 +0000 (21:36 +0800)
commit85e6a33bdfddfc9532dc10079368649a23c2b6c4
treed03275ee9e140680aa670cfb82d289663aab5d73
parentb6652f5100af48141dadcc45b087cf75eadc145e
hlsenc: Fixing HLS_TEMP_FILE usage with HLS_SECOND_LEVEL_SEGMENT_...

Currently using HLS_TEMP together with HLS_SECOND_LEVEL_SEGMENT_DURATION
or HLS_SECOND_LEVEL_SEGMENT_SIZE gives error at end of each segment
writing and the final segment file names do not contain the desired
data. This patch fixes this bug by delaying the initilization of
original segment filename after actual temp file renaming will skip the
interfering.

Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu>
libavformat/hlsenc.c