Commit d08c46d9 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: limit the screensaver blocking to video playback

(cherry picked from commit 1bf20469)
parent b888dfca
...@@ -1454,7 +1454,7 @@ unsigned int CocoaKeyToVLC( unichar i_key ) ...@@ -1454,7 +1454,7 @@ unsigned int CocoaKeyToVLC( unichar i_key )
p_input = pl_CurrentInput( p_intf ); p_input = pl_CurrentInput( p_intf );
if( p_input ) if( p_input )
{ {
if( var_GetInteger( p_input, "state" ) == PLAYING_S ) if( var_GetInteger( p_input, "state" ) == PLAYING_S && [self activeVideoPlayback] )
UpdateSystemActivity( UsrActivity ); UpdateSystemActivity( UsrActivity );
vlc_object_release( p_input ); vlc_object_release( p_input );
} }
......
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