avio: add support for passing options to protocols.

Not used anywhere yet, support for passing options from avio_open() will
follow.
This commit is contained in:
Anton Khirnov
2011-11-05 10:04:04 +01:00
parent 163a31136d
commit ddffc2fdc3
18 changed files with 98 additions and 38 deletions

View File

@@ -100,7 +100,8 @@ static int gopher_open(URLContext *h, const char *uri, int flags)
ff_url_join(buf, sizeof(buf), "tcp", NULL, hostname, port, NULL);
s->hd = NULL;
err = ffurl_open(&s->hd, buf, AVIO_FLAG_READ_WRITE, &h->interrupt_callback);
err = ffurl_open(&s->hd, buf, AVIO_FLAG_READ_WRITE,
&h->interrupt_callback, NULL);
if (err < 0)
goto fail;