| 1981 | } |
| 1982 | |
| 1983 | static int http_read(URLContext *h, uint8_t *buf, int size) |
| 1984 | { |
| 1985 | HTTPContext *s = h->priv_data; |
| 1986 | |
| 1987 | if (s->icy_metaint > 0) { |
| 1988 | size = store_icy(h, size); |
| 1989 | if (size < 0) |
| 1990 | return size; |
| 1991 | } |
| 1992 | |
| 1993 | size = http_read_stream(h, buf, size); |
| 1994 | if (size > 0) |
| 1995 | s->icy_data_read += size; |
| 1996 | return size; |
| 1997 | } |
| 1998 | |
| 1999 | /* used only when posting data */ |
| 2000 | static int http_write(URLContext *h, const uint8_t *buf, int size) |
nothing calls this directly
no test coverage detected