v4l2: use V4L2_FMT_FLAG_EMULATED only if it is defined

V4L2_FMT_FLAG_EMULATED was added in 2.6.32.
This commit is contained in:
Janne Grunau 2012-01-04 20:29:57 +01:00
parent e8c04f6240
commit f13a9ca906

View File

@ -316,10 +316,12 @@ static void list_formats(AVFormatContext *ctx, int fd, int type)
continue; continue;
} }
#ifdef V4L2_FMT_FLAG_EMULATED
if (vfd.flags & V4L2_FMT_FLAG_EMULATED) { if (vfd.flags & V4L2_FMT_FLAG_EMULATED) {
av_log(ctx, AV_LOG_WARNING, "%s", "Emulated"); av_log(ctx, AV_LOG_WARNING, "%s", "Emulated");
continue; continue;
} }
#endif
#if HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE #if HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE
list_framesizes(ctx, fd, vfd.pixelformat); list_framesizes(ctx, fd, vfd.pixelformat);
#endif #endif