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.
This commit is contained in:
kjeyapal@akamai.com 2018-10-18 14:56:20 +05:30 committed by Karthick J
parent f848d384dd
commit e715b8e10d
1 changed files with 1 additions and 1 deletions

View File

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