Revision 66e5b1df libavformat/applehttp.c

View differences:

libavformat/applehttp.c
224 224
    if (var)
225 225
        free_segment_list(var);
226 226
    c->finished = 0;
227
    while (!url_feof(in)) {
227
    while (!in->eof_reached) {
228 228
        read_chomp_line(in, line, sizeof(line));
229 229
        if (av_strstart(line, "#EXT-X-STREAM-INF:", &ptr)) {
230 230
            struct variant_info info = {{0}};
......
457 457
        if (var->pb && !var->pkt.data) {
458 458
            ret = av_read_frame(var->ctx, &var->pkt);
459 459
            if (ret < 0) {
460
                if (!url_feof(var->pb))
460
                if (!var->pb->eof_reached)
461 461
                    return ret;
462 462
                reset_packet(&var->pkt);
463 463
            }

Also available in: Unified diff