Commit 74942685 authored by Luca Barbato's avatar Luca Barbato

hls: Check av_opt_set_dict return value as well

Bug-Id: CID 1320426
parent d0a3e89d
......@@ -220,9 +220,8 @@ static int url_connect(struct variant *var, AVDictionary *opts)
av_dict_copy(&tmp, opts, 0);
av_opt_set_dict(var->input, &tmp);
if ((ret = ffurl_connect(var->input, NULL)) < 0) {
if ((ret = av_opt_set_dict(var->input, &tmp)) < 0 ||
(ret = ffurl_connect(var->input, NULL)) < 0) {
ffurl_close(var->input);
var->input = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment