[FFmpeg-cvslog] avformat/dashenc: URL close unconditionally after DELETE segments

kjeyapal@akamai.com git at videolan.org
Sun Oct 21 13:56:55 EEST 2018


ffmpeg | branch: master | kjeyapal at akamai.com <kjeyapal at akamai.com> | Thu Oct 18 15:14:20 2018 +0530| [e715b8e10d0d9a63d337f75e2338843d92f5f475] | committer: 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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e715b8e10d0d9a63d337f75e2338843d92f5f475
---

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



More information about the ffmpeg-cvslog mailing list