]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/gopher.c
lavd/caca: do not access deprecated codec context
[ffmpeg] / libavformat / gopher.c
index 3070b24caf2cfa2ac654c69a126afc365bbcae99..8b6d14a1f77b2d6917c881045f0999b9babaecf4 100644 (file)
@@ -68,10 +68,7 @@ static int gopher_connect(URLContext *h, const char *path)
 static int gopher_close(URLContext *h)
 {
     GopherContext *s = h->priv_data;
-    if (s->hd) {
-        ffurl_close(s->hd);
-        s->hd = NULL;
-    }
+    ffurl_closep(&s->hd);
     return 0;
 }