]> git.sesse.net Git - vlc/commitdiff
macosx: added an extra sanity check to fix video playback on Macs using the QT4 inter...
authorFelix Paul Kühne <fkuehne@videolan.org>
Thu, 31 Jan 2008 18:19:17 +0000 (18:19 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Thu, 31 Jan 2008 18:19:17 +0000 (18:19 +0000)
modules/gui/macosx/vout.m

index 5c872687156ce3ed1b451bb4d7132b52df9ef20e..73f787c9f9f0c624ea36d937e489898419999909 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * vout.m: MacOS X video output module
  *****************************************************************************
- * Copyright (C) 2001-2007 the VideoLAN team
+ * Copyright (C) 2001-2008 the VideoLAN team
  * $Id$
  *
  * Authors: Colin Delacroix <colin@zoy.org>
@@ -441,6 +441,9 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
 - (void)manage
 {
     /* Disable Screensaver, when we're playing something, but allow it on pause */
+    if( !VLCIntf || !VLCIntf->p_sys || !VLCIntf->p_sys->i_play_status )
+        return;
+
     if( VLCIntf->p_sys->i_play_status == PLAYING_S )
         UpdateSystemActivity( UsrActivity );
 }