avformat/dashenc: URL close unconditionally after DELETE segments
authorkjeyapal@akamai.com <kjeyapal@akamai.com>
Thu, 18 Oct 2018 09:26:20 +0000 (14:56 +0530)
committerKarthick J <kjeyapal@akamai.com>
Sun, 21 Oct 2018 10:56:32 +0000 (16:26 +0530)
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

index 15b84a0..b0a59af 100644 (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));
     }