Commit d0be0cbe authored by Stephan Holljes's avatar Stephan Holljes Committed by Clément Bœsch

lavf/aviobuf.c: Adapt avio_accept and avio_handshake to new AVIOContext API

Signed-off-by: 's avatarStephan Holljes <klaxa1337@googlemail.com>
parent fbf8ac7d
...@@ -1156,7 +1156,8 @@ int avio_read_to_bprint(AVIOContext *h, AVBPrint *pb, size_t max_size) ...@@ -1156,7 +1156,8 @@ int avio_read_to_bprint(AVIOContext *h, AVBPrint *pb, size_t max_size)
int avio_accept(AVIOContext *s, AVIOContext **c) int avio_accept(AVIOContext *s, AVIOContext **c)
{ {
int ret; int ret;
URLContext *sc = s->opaque; AVIOInternal *internal = s->opaque;
URLContext *sc = internal->h;
URLContext *cc = NULL; URLContext *cc = NULL;
ret = ffurl_accept(sc, &cc); ret = ffurl_accept(sc, &cc);
if (ret < 0) if (ret < 0)
...@@ -1166,7 +1167,8 @@ int avio_accept(AVIOContext *s, AVIOContext **c) ...@@ -1166,7 +1167,8 @@ int avio_accept(AVIOContext *s, AVIOContext **c)
int avio_handshake(AVIOContext *c) int avio_handshake(AVIOContext *c)
{ {
URLContext *cc = c->opaque; AVIOInternal *internal = c->opaque;
URLContext *cc = internal->h;
return ffurl_handshake(cc); return ffurl_handshake(cc);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment