summaryrefslogtreecommitdiff
path: root/libavformat/hls.c
diff options
context:
space:
mode:
authorDuncan Salerno <duncan.salerno@gmail.com>2012-10-09 19:08:53 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-10-09 22:12:34 +0200
commitbd2f8e8f79e91e8dc1559078c0e1149e2e6bcc36 (patch)
tree6ca7c0023f1ebaf5fbbdcd5d919f388453d74542 /libavformat/hls.c
parentb6f435fbc87c024f8403fca69e6e6b98bccf93fa (diff)
Fix second use of AVOptions in HLS
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/hls.c')
-rw-r--r--libavformat/hls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 1f5309b642..6675a1a4a3 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -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;