Define v4l2 option field only if HAVE_V4L2

This commit is contained in:
Romain Vimont
2021-10-27 18:43:47 +02:00
parent 27fa23846d
commit 34eb10ea0b
2 changed files with 4 additions and 0 deletions

View File

@@ -9,7 +9,9 @@ const struct scrcpy_options scrcpy_options_default = {
.render_driver = NULL,
.codec_options = NULL,
.encoder_name = NULL,
#ifdef HAVE_V4L2
.v4l2_device = NULL,
#endif
.log_level = SC_LOG_LEVEL_INFO,
.record_format = SC_RECORD_FORMAT_AUTO,
.keyboard_input_mode = SC_KEYBOARD_INPUT_MODE_INJECT,