From e715b8e10d0d9a63d337f75e2338843d92f5f475 Mon Sep 17 00:00:00 2001 From: "kjeyapal@akamai.com" Date: Thu, 18 Oct 2018 14:56:20 +0530 Subject: [PATCH] avformat/dashenc: URL close unconditionally after DELETE segments Fixes bug with HTTP DELETE when HTTP Persistent is ON. Right now, HTTP Persistent connections is supported only for POSTs and PUTs. HTTP DELETE will still open a new connection every time. --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 15b84a0f3b..b0a59af3ee 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1253,7 +1253,7 @@ static void dashenc_delete_file(AVFormatContext *s, char *filename) { } av_dict_free(&http_opts); - dashenc_io_close(s, &out, filename); + ff_format_io_close(s, &out); } else if (unlink(filename) < 0) { av_log(s, AV_LOG_ERROR, "failed to delete %s: %s\n", filename, strerror(errno)); }