Index: media/gpu/generic_v4l2_device.cc |
diff --git a/media/gpu/generic_v4l2_device.cc b/media/gpu/generic_v4l2_device.cc |
index ebdc867b12a5b63f3b4ef6627a82488dc883806a..af2588b1c4f34f1b677f0122d54b1201c3d02406 100644 |
--- a/media/gpu/generic_v4l2_device.cc |
+++ b/media/gpu/generic_v4l2_device.cc |
@@ -48,8 +48,11 @@ const char kImageProcessorDevice[] = "/dev/image-proc0"; |
const char kJpegDecoderDevice[] = "/dev/jpeg-dec"; |
} |
-GenericV4L2Device::GenericV4L2Device(Type type) |
- : V4L2Device(type), use_libv4l2_(false) {} |
+GenericV4L2Device::GenericV4L2Device(Type type) : V4L2Device(type) { |
+#if defined(USE_LIBV4L2) |
+ use_libv4l2_ = false; |
+#endif |
+} |
GenericV4L2Device::~GenericV4L2Device() { |
#if defined(USE_LIBV4L2) |