]> git.sesse.net Git - vlc/commit
macosx: Sanitization. Suppress non-sense yield(->p_input) release(->p_input), invalid...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 31 May 2008 11:37:48 +0000 (13:37 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 31 May 2008 11:37:48 +0000 (13:37 +0200)
commit4af9b5114e371d07eb5c30890cdf1f8b133a563d
tree3d92c6df78459027a870b111f35722bb8a381744
parent1993aa3c29ccd1daf22cd5925e218b34afa52a1c
macosx: Sanitization. Suppress non-sense yield(->p_input) release(->p_input), invalidate the manage thread, make sure we don't re-run a timer when the interface is dead. (Shoot 'em up!)

Remember, you can't assume that in your thread an object is alive if you don't delimit want-to-be safe place by a lock(p_obj)/unlock(p_obj).
Also, yield(p_playlist->p_input) is invalid if you don't lock the playlist before. The correct way here is to use vlc_object_find() as the locking policy of the playlist is not safe.
modules/gui/macosx/intf.h
modules/gui/macosx/intf.m