MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / http_accept

Function http_accept

libavformat/http.c:823–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

821}
822
823static int http_accept(URLContext *s, URLContext **c)
824{
825 int ret;
826 HTTPContext *sc = s->priv_data;
827 HTTPContext *cc;
828 URLContext *sl = sc->hd;
829 URLContext *cl = NULL;
830
831 av_assert0(sc->listen);
832 if ((ret = ffurl_alloc(c, s->filename, s->flags, &sl->interrupt_callback)) < 0)
833 goto fail;
834 cc = (*c)->priv_data;
835 if ((ret = ffurl_accept(sl, &cl)) < 0)
836 goto fail;
837 cc->hd = cl;
838 cc->is_multi_client = 1;
839 return 0;
840fail:
841 if (c) {
842 ffurl_closep(c);
843 }
844 return ret;
845}
846
847static int http_getc(HTTPContext *s)
848{

Callers

nothing calls this directly

Calls 3

ffurl_allocFunction · 0.85
ffurl_acceptFunction · 0.85
ffurl_closepFunction · 0.85

Tested by

no test coverage detected