mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-18 22:14:20 +01: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user