af996e26bb
OK dcoppa@, sthen@.
30 lines
965 B
Plaintext
30 lines
965 B
Plaintext
$OpenBSD: patch-src_libvlc_c,v 1.1 2010/05/05 08:43:35 edd Exp $
|
|
--- src/libvlc.c.orig Sun Mar 7 13:38:03 2010
|
|
+++ src/libvlc.c Tue Apr 27 19:14:30 2010
|
|
@@ -906,21 +906,25 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i
|
|
&& config_GetInt( p_libvlc, "started-from-file" ) ) )
|
|
libvlc_InternalAddIntf( p_libvlc, "dbus,none" );
|
|
|
|
+#ifdef __i386__
|
|
/* Prevents the power management daemon from suspending the system
|
|
* when VLC is active */
|
|
if( config_GetInt( p_libvlc, "inhibit" ) > 0 )
|
|
libvlc_InternalAddIntf( p_libvlc, "inhibit,none" );
|
|
#endif
|
|
+#endif
|
|
|
|
/*
|
|
* If needed, load the Xscreensaver interface
|
|
* Currently, only for X
|
|
*/
|
|
#ifdef HAVE_X11_XLIB_H
|
|
+#ifdef __i386__
|
|
if( config_GetInt( p_libvlc, "disable-screensaver" ) )
|
|
{
|
|
libvlc_InternalAddIntf( p_libvlc, "screensaver,none" );
|
|
}
|
|
+#endif
|
|
#endif
|
|
|
|
if( (config_GetInt( p_libvlc, "file-logging" ) > 0) &&
|