Revision f87b1b37 libavformat/applehttpproto.c

View differences:

libavformat/applehttpproto.c
115 115
    char line[1024];
116 116
    const char *ptr;
117 117

  
118
    if ((ret = avio_open(&in, url, URL_RDONLY)) < 0)
118
    if ((ret = avio_open(&in, url, AVIO_RDONLY)) < 0)
119 119
        return ret;
120 120

  
121 121
    read_chomp_line(in, line, sizeof(line));
......
180 180
    int ret, i;
181 181
    const char *nested_url;
182 182

  
183
    if (flags & (URL_WRONLY | URL_RDWR))
183
    if (flags & (AVIO_WRONLY | AVIO_RDWR))
184 184
        return AVERROR(ENOSYS);
185 185

  
186 186
    s = av_mallocz(sizeof(AppleHTTPContext));
......
275 275
    }
276 276
    url = s->segments[s->cur_seq_no - s->start_seq_no]->url,
277 277
    av_log(NULL, AV_LOG_DEBUG, "opening %s\n", url);
278
    ret = ffurl_open(&s->seg_hd, url, URL_RDONLY);
278
    ret = ffurl_open(&s->seg_hd, url, AVIO_RDONLY);
279 279
    if (ret < 0) {
280 280
        if (url_interrupt_cb())
281 281
            return AVERROR_EXIT;

Also available in: Unified diff