Commit e715b8e1 authored by kjeyapal@akamai.com's avatar kjeyapal@akamai.com Committed by Karthick J

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.
parent f848d384
......@@ -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));
}
......
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