diff --git a/spa/plugins/v4l2/v4l2-utils.c b/spa/plugins/v4l2/v4l2-utils.c index d3b7a15be..e11a0e998 100644 --- a/spa/plugins/v4l2/v4l2-utils.c +++ b/spa/plugins/v4l2/v4l2-utils.c @@ -1457,7 +1457,9 @@ mmap_init(struct impl *this, spa_log_debug(this->log, "v4l2: data types %08x", d[0].type); - if (port->have_expbuf && (d[0].type & (1u << SPA_DATA_DmaBuf))) { + if (port->have_expbuf && + d[0].type != SPA_ID_INVALID && + (d[0].type & (1u << SPA_DATA_DmaBuf))) { struct v4l2_exportbuffer expbuf; spa_zero(expbuf);