Fix second use of AVOptions in HLS
authorDuncan Salerno <duncan.salerno@gmail.com>
Tue, 9 Oct 2012 18:08:53 +0000 (19:08 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 9 Oct 2012 20:12:34 +0000 (22:12 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/hls.c

index 1f5309b..6675a1a 100644 (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;