mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Rename (un)lock_mutex to mutex_(un)lock
For consistency, rename lock_mutex and unlock_mutex to mutex_lock and mutex_unlock.
This commit is contained in:
parent
ad667bfa20
commit
c4266e487b
3 changed files with 10 additions and 6 deletions
|
|
@ -349,7 +349,7 @@ SDL_bool show_screen(const char *serial, Uint16 local_port) {
|
|||
case SDL_QUIT:
|
||||
goto screen_quit;
|
||||
case EVENT_NEW_FRAME:
|
||||
lock_mutex(frames.mutex);
|
||||
mutex_lock(frames.mutex);
|
||||
AVFrame *frame = frames.rendering_frame;
|
||||
frames.rendering_frame_consumed = SDL_TRUE;
|
||||
if (!decoder.skip_frames) {
|
||||
|
|
@ -364,7 +364,7 @@ SDL_bool show_screen(const char *serial, Uint16 local_port) {
|
|||
frame_size = current_frame_size;
|
||||
|
||||
update_texture(frame, texture);
|
||||
unlock_mutex(frames.mutex);
|
||||
mutex_unlock(frames.mutex);
|
||||
|
||||
texture_empty = SDL_FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue