From: Pierre d'Herbemont Date: Tue, 8 Jul 2008 00:27:39 +0000 (+0200) Subject: macosx: Fix +resetVout prototype. (Fix #1679 "Fullscreen mode with video window witho... X-Git-Tag: 0.9.0-test2~118 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b24328a62e388dfc1e6b772b0794e0e07dc2a02c;p=vlc macosx: Fix +resetVout prototype. (Fix #1679 "Fullscreen mode with video window without controls crashes"). --- diff --git a/modules/gui/macosx/voutgl.m b/modules/gui/macosx/voutgl.m index 86256177c9..13d8817580 100644 --- a/modules/gui/macosx/voutgl.m +++ b/modules/gui/macosx/voutgl.m @@ -52,7 +52,7 @@ vout_thread_t * p_vout; } -+ (void)resetVout: (vout_thread_t *) p_vout; ++ (void)resetVout: (NSValue *) voutValue; - (id) initWithVout: (vout_thread_t *) p_vout; @end @@ -324,8 +324,9 @@ static void Unlock( vout_thread_t * p_vout ) } /* This function will reset the o_vout_view. It's useful to go fullscreen. */ -+ (void)resetVout:(vout_thread_t *) p_vout ++ (void)resetVout:(NSValue *) voutValue { + vout_thread_t * p_vout = [voutValue pointerValue]; if( p_vout->b_fullscreen ) { /* Save window size and position */