mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-07-15 21:41:45 +00:00
Define v4l2_buffer only if HAVE_V4L2
If V4L2 support is disabled, there is no v4l2 buffer option.
This commit is contained in:
parent
f46758d1c5
commit
6ad46d70b8
2 changed files with 8 additions and 8 deletions
|
@ -112,9 +112,6 @@ struct scrcpy_options {
|
|||
const char *audio_codec_options;
|
||||
const char *video_encoder;
|
||||
const char *audio_encoder;
|
||||
#ifdef HAVE_V4L2
|
||||
const char *v4l2_device;
|
||||
#endif
|
||||
enum sc_log_level log_level;
|
||||
enum sc_codec video_codec;
|
||||
enum sc_codec audio_codec;
|
||||
|
@ -137,9 +134,12 @@ struct scrcpy_options {
|
|||
uint16_t window_height;
|
||||
uint32_t display_id;
|
||||
sc_tick display_buffer;
|
||||
sc_tick v4l2_buffer;
|
||||
sc_tick audio_buffer;
|
||||
sc_tick audio_output_buffer;
|
||||
#ifdef HAVE_V4L2
|
||||
const char *v4l2_device;
|
||||
sc_tick v4l2_buffer;
|
||||
#endif
|
||||
#ifdef HAVE_USB
|
||||
bool otg;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue