2
0
mirror of https://github.com/Genymobile/scrcpy synced 2025-08-31 06:15:25 +00:00

Rename "frames" to "video_buffer"

It better describes the purpose of the structure.
This commit is contained in:
Romain Vimont
2019-03-02 15:16:55 +01:00
parent aacb09a3d6
commit fff87095d9
11 changed files with 157 additions and 155 deletions

View File

@@ -114,16 +114,16 @@ static void collapse_notification_panel(struct controller *controller) {
}
}
static void switch_fps_counter_state(struct frames *frames) {
mutex_lock(frames->mutex);
if (frames->fps_counter.started) {
static void switch_fps_counter_state(struct video_buffer *vb) {
mutex_lock(vb->mutex);
if (vb->fps_counter.started) {
LOGI("FPS counter stopped");
fps_counter_stop(&frames->fps_counter);
fps_counter_stop(&vb->fps_counter);
} else {
LOGI("FPS counter started");
fps_counter_start(&frames->fps_counter);
fps_counter_start(&vb->fps_counter);
}
mutex_unlock(frames->mutex);
mutex_unlock(vb->mutex);
}
static void clipboard_paste(struct controller *controller) {
@@ -260,7 +260,7 @@ void input_manager_process_key(struct input_manager *input_manager,
case SDLK_i:
if (ctrl && !meta && !shift && !repeat
&& event->type == SDL_KEYDOWN) {
switch_fps_counter_state(input_manager->frames);
switch_fps_counter_state(input_manager->video_buffer);
}
return;
case SDLK_n: