After the starting i counter got changed from 0 to start_i, someone seemingly forgot to change it for the datetime conditional as well, therefore creating a bug where the #EXT-X-PROGRAM-DATE-TIME header is shown only before the first fragment. But after the chunkfile starts rotating it disappears. This fixes it.
After the starting
i
counter got changed from 0 to start_i, someone seemingly forgot to change it for the datetime conditional as well, therefore creating a bug where the#EXT-X-PROGRAM-DATE-TIME
header is shown only before the first fragment. But after the chunkfile starts rotating it disappears. This fixes it.Fixes https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/issues/345