diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index c9227d0cf4..cae86cef55 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -724,7 +724,7 @@ gst_v4l2_object_format_get_rank (const struct v4l2_fmtdesc *fmt) { guint32 fourcc = fmt->pixelformat; #ifdef V4L2_FMT_FLAG_EMULATED - gboolean emulated = ((flags & V4L2_FMT_FLAG_EMULATED) != 0); + gboolean emulated = ((fmt->flags & V4L2_FMT_FLAG_EMULATED) != 0); #else gboolean emulated = FALSE; #endif