Previous version was not writing the last segment of the file to the output folder.
For --replay option, the EXT-X-DISCONTINUITY must be located just before the first segment of the new repetition, not at the header. Added a discontinuity method in Chunk class to set it.
With this last change, the playout from a HLS player works correctly in replay mode.
2 changes:
With this last change, the playout from a HLS player works correctly in replay mode.