Use a condition variable to ensure FFmpeg threads don't just spin
It turns out the FFmpeg related functions for pulling things from the relevant queues don't block if the queue is empty, so we have to manually add something to prevent the threads from just spinning at whatever maximum the CPU can handle.
parent
5c6be633
Please register or sign in to comment