Commit 88a26abc authored by Daniel Oberhoff's avatar Daniel Oberhoff Committed by Steven Liu

hlsenc: flush segments to guarantuee atomic single file hls

parent 3b5ce76b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment