[vlc-devel] commit: Assume X11 --forbar-shm is FALSE if the option does not exists ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Jan 8 20:51:17 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Jan  8 21:51:21 2009 +0200| [df84649aa6533079a752810eec642f2673df50ca] | committer: Rémi Denis-Courmont 

Assume X11 --forbar-shm is FALSE if the option does not exists

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df84649aa6533079a752810eec642f2673df50ca
---

 modules/video_output/x11/xcommon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/x11/xcommon.c b/modules/video_output/x11/xcommon.c
index c64ad74..4286464 100644
--- a/modules/video_output/x11/xcommon.c
+++ b/modules/video_output/x11/xcommon.c
@@ -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;
 




More information about the vlc-devel mailing list