[FFmpeg-devel] [PATCH] lavf: set is_connected flag so url can be properly closed

Mariusz Szczepańczyk mszczepanczyk at gmail.com
Tue Jun 23 03:35:16 CEST 2015


---
 libavformat/avio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index bd32944..aff8d10 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;
-- 
2.3.6



More information about the ffmpeg-devel mailing list