[vlc-devel] commit: x11: fix compiler warnings. ( Rémi Duraffort )
git version control
git at videolan.org
Tue Feb 3 11:50:40 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Feb 3 11:49:21 2009 +0100| [7b3cb7d92c6c05dc4cd39f6826755895564d5759] | committer: Rémi Duraffort
x11: fix compiler warnings.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7b3cb7d92c6c05dc4cd39f6826755895564d5759
---
modules/video_output/x11/xcommon.c | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/modules/video_output/x11/xcommon.c b/modules/video_output/x11/xcommon.c
index bad0e01..7b6d6d6 100644
--- a/modules/video_output/x11/xcommon.c
+++ b/modules/video_output/x11/xcommon.c
@@ -1302,9 +1302,7 @@ static int ManageVideo( vout_thread_t *p_vout )
var_Set( p_vout, "mouse-button-down", val );
var_SetBool( p_vout, "mouse-clicked", true );
-
- vlc_value_t val; val.b_bool = false;
- var_Set( p_vout->p_libvlc, "intf-popupmenu", val );
+ var_SetBool( p_vout->p_libvlc, "intf-popupmenu", false );
}
break;
@@ -1326,8 +1324,7 @@ static int ManageVideo( vout_thread_t *p_vout )
val.i_int &= ~4;
var_Set( p_vout, "mouse-button-down", val );
- vlc_value_t val; val.b_bool = true;
- var_Set( p_vout->p_libvlc, "intf-popupmenu", val );
+ var_SetBool( p_vout->p_libvlc, "intf-popupmenu", true );
}
break;
@@ -1349,7 +1346,6 @@ static int ManageVideo( vout_thread_t *p_vout )
else if( xevent.type == MotionNotify )
{
unsigned int i_width, i_height, i_x, i_y;
- vlc_value_t val;
/* somewhat different use for vout_PlacePicture:
* here the values are needed to give to mouse coordinates
@@ -1384,8 +1380,7 @@ static int ManageVideo( vout_thread_t *p_vout )
var_Set( p_vout, "mouse-y", val );
- val.b_bool = true;
- var_Set( p_vout, "mouse-moved", val );
+ var_SetBool( p_vout, "mouse-moved", true );
p_vout->p_sys->i_time_mouse_last_moved = mdate();
if( ! p_vout->p_sys->b_mouse_pointer_visible )
@@ -2795,7 +2790,7 @@ static int InitDisplay( vout_thread_t *p_vout )
if( p_vout->p_sys->i_shm_opcode )
{
- int major, minor;
+ int minor;
Bool pixmaps;
XShmQueryVersion( p_vout->p_sys->p_display, &major, &minor,
More information about the vlc-devel
mailing list