[MPlayer-dev-eng] [PATCH] Fix vo_macosx delay dealloc bug

Ulion ulion2002 at gmail.com
Mon Nov 19 11:29:12 CET 2007


Hello,

vo_macosx has some delay dealloc problem, an earler fix for it does
not kill the delay dealloc, only prevent from crashing caused by delay
dealloc.

Now on mac os 10.5 (Leopard) PPC platform, the delay dealloc make
things worse when continue play multiple movie files. On most time, it
will got a green blank player window and no video displayed at all,
sometimes after seconds it restore to display video. That's caused by
the delay deallocation.

After add a dealloc method for MPlayerOpenGLView, I found the dealloc
got delay runned even after the second movie start playing, it got
delayed everytime. The delay dealloc seems always happens on all
platforms and mac os versions, but it cause worse result on Leopard --
keeping blank green window, I have to find a way to make it dealloc
before next video init. After some test, I found the way to make the
dealloc happen at once after we release the pool -- just let the NSApp
has chance to handle events.

Here's the fix, If no objects, I will apply it in 3 days.

-- 
Ulion
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vo_macosx_delay_dealloc_fix.diff
Type: text/x-diff
Size: 481 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071119/6b2c7037/attachment.diff>


More information about the MPlayer-dev-eng mailing list