From: Limin Wang <lance.lmw...@gmail.com>

By the code, is_connected is used to check file open or not, so after open_dir
is done, we should not set is_connected to 1, it'll cause the function 
ffurl_closep 
will invoke the url_close and cause unexpected file close.

Signed-off-by: Limin Wang <lance.lmw...@gmail.com>
---
 libavformat/avio.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 663789e..8b52aa3 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -560,7 +560,6 @@ 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.6.4

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to