vo_rpi: fix NULL pointer deref

Can happen in obscure situations and with hw decoding disabled.
This commit is contained in:
wm4 2015-08-14 13:19:17 +02:00
parent 70c990cda5
commit a6e33b4290
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame)
p->display_synced = frame->display_synced;
if (vo->params->imgfmt != IMGFMT_MMAL) {
if (mpi && mpi->imgfmt != IMGFMT_MMAL) {
MMAL_BUFFER_HEADER_T *buffer = mmal_queue_wait(p->swpool->queue);
if (!buffer) {
talloc_free(mpi);