mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-12 01:14:28 +01:00
The recorder has two initialization phases: one to initialize the concrete recorder object, and one to open its packet_sink trait. Initialize mutex and condvar as part of the object initialization. If there were several packet_sink traits (spoiler: one for video, one for audio), then the mutex and condvar would still be initialized only once.