lavf: set is_connected flag so url can be properly closed
authorMariusz SzczepaƄczyk <mszczepanczyk@gmail.com>
Tue, 23 Jun 2015 01:35:16 +0000 (03:35 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 24 Jun 2015 13:40:03 +0000 (15:40 +0200)
Reviewed-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/avio.c

index bd32944..aff8d10 100644 (file)
@@ -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;