[PATCH 4/4] qcap: Use a condition variable to synchronize with the video capture thread.