From b24328a62e388dfc1e6b772b0794e0e07dc2a02c Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Tue, 8 Jul 2008 02:27:39 +0200 Subject: [PATCH] macosx: Fix +resetVout prototype. (Fix #1679 "Fullscreen mode with video window without controls crashes"). --- modules/gui/macosx/voutgl.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 */ -- 2.39.2