Assume X11 --forbar-shm is FALSE if the option does not exists
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Thu, 8 Jan 2009 19:51:21 +0000 (21:51 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Thu, 8 Jan 2009 19:51:21 +0000 (21:51 +0200)
modules/video_output/x11/xcommon.c

index c64ad74..4286464 100644 (file)
@@ -2764,7 +2764,7 @@ static int InitDisplay( vout_thread_t *p_vout )
 #ifdef HAVE_SYS_SHM_H
     p_vout->p_sys->i_shm_opcode = 0;
 
-    if( config_GetInt( p_vout, MODULE_STRING "-shm" ) )
+    if( config_GetInt( p_vout, MODULE_STRING "-shm" ) > 0 )
     {
         int major, evt, err;