Revision f87b1b37 libavformat/http.c

View differences:

libavformat/http.c
124 124
        port = 80;
125 125

  
126 126
    ff_url_join(buf, sizeof(buf), "tcp", NULL, hostname, port, NULL);
127
    err = ffurl_open(&hd, buf, URL_RDWR);
127
    err = ffurl_open(&hd, buf, AVIO_RDWR);
128 128
    if (err < 0)
129 129
        goto fail;
130 130

  
......
296 296

  
297 297

  
298 298
    /* send http header */
299
    post = h->flags & URL_WRONLY;
299
    post = h->flags & AVIO_WRONLY;
300 300
    authstr = ff_http_auth_create_response(&s->auth_state, auth, path,
301 301
                                        post ? "POST" : "GET");
302 302

  
......
451 451
    HTTPContext *s = h->priv_data;
452 452

  
453 453
    /* signal end of chunked encoding if used */
454
    if ((h->flags & URL_WRONLY) && s->chunksize != -1) {
454
    if ((h->flags & AVIO_WRONLY) && s->chunksize != -1) {
455 455
        ret = ffurl_write(s->hd, footer, sizeof(footer) - 1);
456 456
        ret = ret > 0 ? 0 : ret;
457 457
    }

Also available in: Unified diff