Revision a92a7ddc libavformat/applehttp.c

View differences:

libavformat/applehttp.c
309 309
    c->end_of_segment = 1;
310 310
    c->cur_seq_no = v->cur_seq_no;
311 311

  
312
    v->needed = 0;
313
    for (i = v->stream_offset; i < v->stream_offset + v->ctx->nb_streams; i++) {
314
        if (v->parent->streams[i]->discard < AVDISCARD_ALL)
315
            v->needed = 1;
312
    if (v->ctx) {
313
        v->needed = 0;
314
        for (i = v->stream_offset; i < v->stream_offset + v->ctx->nb_streams;
315
             i++) {
316
            if (v->parent->streams[i]->discard < AVDISCARD_ALL)
317
                v->needed = 1;
318
        }
316 319
    }
317 320
    if (!v->needed) {
318 321
        av_log(v->parent, AV_LOG_INFO, "No longer receiving variant %d\n",

Also available in: Unified diff