mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-01 05:38:51 +00:00
Unlock mutex on screen update failure
The mutex was not unlocked on all code paths.
This commit is contained in:
parent
e8dfb723af
commit
0d7f050389
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ static SDL_bool handle_new_frame(void) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!screen_update(&screen, frame)){
|
if (!screen_update(&screen, frame)){
|
||||||
|
mutex_unlock(frames.mutex);
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
mutex_unlock(frames.mutex);
|
mutex_unlock(frames.mutex);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue