Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Fix deadlock in ViewLayer.draw methods, #11
Browse files Browse the repository at this point in the history
Resolved merge conflicts.

The commit changes the order of acquiring locks in both of the ViewLayer draw
methods to first lock the OpenGL context before locking uninitLock.
  • Loading branch information
low-batt authored and CarterLi committed May 4, 2022
1 parent 2e2aeaf commit c12017c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion iina/ViewLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ class ViewLayer: CAOpenGLLayer {
]
mpv_render_context_render(renderContext, &params);
}
videoView.player.mpv?.unlockOpenGLContext()
}
needsMPVRender = false
}
Expand Down

0 comments on commit c12017c

Please sign in to comment.