]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/subfile.c
avformat: Remove getters and setters
[ffmpeg] / libavformat / subfile.c
index 5d8659c8c428e4c4e4f976a93f5ade20f1dc1581..300672e657d43f9e69e335da669c8d4cad27a4fa 100644 (file)
@@ -86,7 +86,7 @@ static int subfile_open(URLContext *h, const char *filename, int flags,
         return ret;
     c->pos = c->start;
     if ((ret = slave_seek(h)) < 0) {
-        ffurl_close(c->h);
+        ffurl_closep(&c->h);
         return ret;
     }
     return 0;
@@ -95,7 +95,7 @@ static int subfile_open(URLContext *h, const char *filename, int flags,
 static int subfile_close(URLContext *h)
 {
     SubfileContext *c = h->priv_data;
-    return ffurl_close(c->h);
+    return ffurl_closep(&c->h);
 }
 
 static int subfile_read(URLContext *h, unsigned char *buf, int size)