applehttp: fix variant discard logic

The v->ctx is always not NULL now, check for streams presence to
mark the read_header state.

Fixes bug #25, possibly introduced by 603b8bc
This commit is contained in:
Luca Barbato 2011-08-04 01:06:58 +02:00
parent ad62507f32
commit 1bf6cb85be
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ reload:
c->end_of_segment = 1; c->end_of_segment = 1;
c->cur_seq_no = v->cur_seq_no; c->cur_seq_no = v->cur_seq_no;
if (v->ctx) { if (v->ctx && v->ctx->nb_streams) {
v->needed = 0; v->needed = 0;
for (i = v->stream_offset; i < v->stream_offset + v->ctx->nb_streams; for (i = v->stream_offset; i < v->stream_offset + v->ctx->nb_streams;
i++) { i++) {