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

Jeyapal, Karthick kjeyapal at akamai.com
Sun Oct 21 13:59:50 EEST 2018


On 10/18/18 2:56 PM, Karthick J wrote:
> 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));
>      }
Pushed

Regards,
Karthick



More information about the ffmpeg-devel mailing list