]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/gopher.c
Revert "replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION"
[ffmpeg] / libavformat / gopher.c
index f5bb4a371854e92f8c1ff9e05289f19e9813e8a4..767ec22a7c8af1fef822b6f65984aea3f788f757 100644 (file)
@@ -31,7 +31,7 @@ typedef struct {
     URLContext *hd;
 } GopherContext;
 
-static int gopher_write(URLContext *h, uint8_t *buf, int size)
+static int gopher_write(URLContext *h, const uint8_t *buf, int size)
 {
     GopherContext *s = h->priv_data;
     return url_write(s->hd, buf, size);
@@ -90,7 +90,7 @@ static int gopher_open(URLContext *h, const char *uri, int flags)
     h->priv_data = s;
 
     /* needed in any case to build the host string */
-    ff_url_split(NULL, 0, auth, sizeof(auth), hostname, sizeof(hostname), &port,
+    av_url_split(NULL, 0, auth, sizeof(auth), hostname, sizeof(hostname), &port,
                  path, sizeof(path), uri);
 
     if (port < 0)
@@ -119,7 +119,7 @@ static int gopher_read(URLContext *h, uint8_t *buf, int size)
 }
 
 
-URLProtocol gopher_protocol = {
+URLProtocol ff_gopher_protocol = {
     "gopher",
     gopher_open,
     gopher_read,