oxr: Add one missing mutex to active_wait_frames

This commit is contained in:
Christoph Haag 2020-11-04 14:24:26 +01:00 committed by Jakob Bornecrantz
parent 2a9a0100bc
commit d0b126c1ee

View file

@ -1916,7 +1916,9 @@ oxr_session_frame_end(struct oxr_logger *log,
*/
if (frameEndInfo->layerCount == 0) {
os_mutex_lock(&sess->active_wait_frames_lock);
sess->active_wait_frames--;
os_mutex_unlock(&sess->active_wait_frames_lock);
CALL_CHK(xrt_comp_discard_frame(xc, sess->frame_id.begun));
sess->frame_id.begun = -1;