2
0
mirror of https://github.com/Genymobile/scrcpy synced 2025-09-05 00:35:23 +00:00

Fix deadlock on exit if SKIP_FRAMES disabled

On exit, the renderer will not consume frames anymore, so signal the
condition variable to wake up the decoder.
This commit is contained in:
Romain Vimont
2018-02-09 08:42:39 +01:00
parent 629c296207
commit 127e56780a
5 changed files with 28 additions and 6 deletions

View File

@@ -180,6 +180,7 @@ finally_stop_and_join_controller:
finally_destroy_controller:
controller_destroy(&controller);
finally_stop_decoder:
decoder_stop(&decoder);
// kill the server before decoder_join() to wake up the decoder
server_stop(&server, serial);
decoder_join(&decoder);