mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-18 22:14:20 +01:00
Add buffering command line options
Add --display-buffer and --v4l2-buffer options to configure buffering time.
This commit is contained in:
@@ -308,7 +308,8 @@ screen_init(struct screen *screen, const struct screen_params *params) {
|
||||
.on_new_frame = sc_video_buffer_on_new_frame,
|
||||
};
|
||||
|
||||
bool ok = sc_video_buffer_init(&screen->vb, 0, &cbs, screen);
|
||||
bool ok = sc_video_buffer_init(&screen->vb, params->buffering_time, &cbs,
|
||||
screen);
|
||||
if (!ok) {
|
||||
LOGE("Could not initialize video buffer");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user