Commit 2b5f80db authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

Mac OS X gui: Fix a crash when asking for fullscreen state when no p_real_vout is defined.

parent e544f7ca
...@@ -417,6 +417,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -417,6 +417,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
- (BOOL)isFullscreen - (BOOL)isFullscreen
{ {
vlc_value_t val; vlc_value_t val;
if( !p_real_vout ) return NO;
var_Get( p_real_vout, "fullscreen", &val ); var_Get( p_real_vout, "fullscreen", &val );
return( val.b_bool ); return( val.b_bool );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment