History

avformat/hlsenc: set http options before use delete http method

Fix ticket: 9338 Set options which set by user from parent options.

Steven Liu committed 5 years ago

Commit 5dc1b4b1 parent 79934cc1 file · +1 −0Browse files

Unified · Split

libavformat/hlsenc.c+1−0
@@ -571,6 +571,7 @@ static int hls_delete_file(HLSContext *hls, AVFormatContext *avf, · 570 unmodified lines
571 AVDictionary *opt = NULL;571 AVDictionary *opt = NULL;
572 AVIOContext *out = NULL;572 AVIOContext *out = NULL;
573 int ret;573 int ret;
574 set_http_options(avf, &opt, hls);
574 av_dict_set(&opt, "method", "DELETE", 0);575 av_dict_set(&opt, "method", "DELETE", 0);
575 ret = avf->io_open(avf, &out, path, AVIO_FLAG_WRITE, &opt);576 ret = avf->io_open(avf, &out, path, AVIO_FLAG_WRITE, &opt);
576 av_dict_free(&opt);577 av_dict_free(&opt);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t