[vlc-devel] [PATCH 1/5] macosx: store the vout_window_t in the VLCOpenGLVideoView

Rémi Denis-Courmont remi at remlab.net
Tue Nov 3 08:30:42 CET 2020


Le tiistaina 3. marraskuuta 2020, 9.14.03 EET Steve Lhomme a écrit :
> OK I see the issue. That's because the
> removeVoutSubview()/removeFromSuperview() are called asynchronously in
> the Close. So the VLCOpenGLVideoView still exists for a short time after
> the Close. An atomic bool disabling mouse handling once the Close is
> called should be enough. It will avoid the lock that is causing the
> deadlock.

That won't work; that's a classic ToCToU mismatch. Close might set the flag 
right after mouse handling has loaded it.

-- 
雷米‧德尼-库尔蒙
http://www.remlab.net/





More information about the vlc-devel mailing list