Fix second use of AVOptions in HLS

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Duncan Salerno 2012-10-09 19:08:53 +01:00 committed by Michael Niedermayer
parent b6f435fbc8
commit bd2f8e8f79

View File

@ -368,6 +368,9 @@ static int open_input(struct variant *var)
goto cleanup;
av_opt_set(var->input->priv_data, "key", key, 0);
av_opt_set(var->input->priv_data, "iv", iv, 0);
/* Need to repopulate options */
av_dict_free(&opts);
av_dict_set(&opts, "seekable", "0", 0);
if ((ret = ffurl_connect(var->input, &opts)) < 0) {
ffurl_close(var->input);
var->input = NULL;