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 committed Apr 27, 2022
1 parent ffde9d1 commit e65e355
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 @@ -164,7 +164,6 @@ class ViewLayer: CAOpenGLLayer {
]
mpv_render_context_render(renderContext, &params);
}
videoView.player.mpv?.unlockOpenGLContext()
}
needsMPVRender = false
}
Expand Down

0 comments on commit e65e355

Please sign in to comment.