Skip to content

Commit

Permalink
ijkplayer:fix ijk buffering error
Browse files Browse the repository at this point in the history
  • Loading branch information
raymond1012 authored and raymondzheng committed Jan 24, 2018
1 parent 5b528c0 commit a973bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ijkmedia/ijkplayer/ff_ffplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ static int decoder_decode_frame(FFPlayer *ffp, Decoder *d, AVFrame *frame, AVSub
av_packet_move_ref(&pkt, &d->pkt);
d->packet_pending = 0;
} else {
if (packet_queue_get(d->queue, &pkt, 1, &d->pkt_serial) < 0)
if (packet_queue_get_or_buffering(ffp, d->queue, &pkt, &d->pkt_serial, &d->finished) < 0)
return -1;
}
} while (d->queue->serial != d->pkt_serial);
Expand Down

0 comments on commit a973bcd

Please sign in to comment.