Browse Source

hlsenc: flush segments to guarantuee atomic single file hls

tags/n4.3
Daniel Oberhoff Steven Liu 5 years ago
parent
commit
88a26abcc6
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/hlsenc.c

+ 1
- 0
libavformat/hlsenc.c View File

@@ -466,6 +466,7 @@ static int flush_dynbuf(VariantStream *vs, int *range_length)
*range_length = avio_close_dyn_buf(ctx->pb, &vs->temp_buffer);
ctx->pb = NULL;
avio_write(vs->out, vs->temp_buffer, *range_length);
avio_flush(vs->out);

// re-open buffer
return avio_open_dyn_buf(&ctx->pb);


Loading…
Cancel
Save