summaryrefslogtreecommitdiff
path: root/libavdevice/v4l2.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-01-04 20:29:57 +0100
committerJanne Grunau <janne-libav@jannau.net>2012-01-04 21:34:29 +0100
commitf13a9ca90602408d96fcbaf249a299ac1243609c (patch)
treeb2d008b4bf7b4a0242d9ba23a3c57bd084fa9e36 /libavdevice/v4l2.c
parente8c04f6240b1557aadbab6242912e784656bc24d (diff)
v4l2: use V4L2_FMT_FLAG_EMULATED only if it is defined
V4L2_FMT_FLAG_EMULATED was added in 2.6.32.
Diffstat (limited to 'libavdevice/v4l2.c')
-rw-r--r--libavdevice/v4l2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 2895a01824..71e5b1159a 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -316,10 +316,12 @@ static void list_formats(AVFormatContext *ctx, int fd, int type)
continue;
}
+#ifdef V4L2_FMT_FLAG_EMULATED
if (vfd.flags & V4L2_FMT_FLAG_EMULATED) {
av_log(ctx, AV_LOG_WARNING, "%s", "Emulated");
continue;
}
+#endif
#if HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE
list_framesizes(ctx, fd, vfd.pixelformat);
#endif