| 821 | } |
| 822 | |
| 823 | static 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; |
| 840 | fail: |
| 841 | if (c) { |
| 842 | ffurl_closep(c); |
| 843 | } |
| 844 | return ret; |
| 845 | } |
| 846 | |
| 847 | static int http_getc(HTTPContext *s) |
| 848 | { |
nothing calls this directly
no test coverage detected