summaryrefslogtreecommitdiff
path: root/libavformat/avio.c
diff options
context:
space:
mode:
authorMariusz SzczepaƄczyk <mszczepanczyk@gmail.com>2015-06-23 03:35:16 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-24 15:40:03 +0200
commit346624be4aff582f881501c1215f1ca6d2c0e75c (patch)
treef4258aff79adf00bab6f91842cc8a1c4aae0c15a /libavformat/avio.c
parent8f0f678f090d9939b0014ba85641e2cb83d39cb8 (diff)
downloadffmpeg-346624be4aff582f881501c1215f1ca6d2c0e75c.tar.gz
lavf: set is_connected flag so url can be properly closed
Reviewed-by: Lukasz Marek <lukasz.m.luki2 at gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r--libavformat/avio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index bd329446e3..aff8d10d4a 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -485,6 +485,7 @@ int avio_open_dir(AVIODirContext **s, const char *url, AVDictionary **options)
if (ret < 0)
goto fail;
+ h->is_connected = 1;
ctx->url_context = h;
*s = ctx;
return 0;