Commit 7a8c59f7 authored by Jean-Paul Saman's avatar Jean-Paul Saman

(Forward port of 16977) Fix bunch of compiler signedness warnings in x11/

parent 02854d2a
...@@ -356,7 +356,7 @@ void E_(Deactivate) ( vlc_object_t *p_this ) ...@@ -356,7 +356,7 @@ void E_(Deactivate) ( vlc_object_t *p_this )
*****************************************************************************/ *****************************************************************************/
static int InitVideo( vout_thread_t *p_vout ) static int InitVideo( vout_thread_t *p_vout )
{ {
int i_index; unsigned int i_index = 0;
picture_t *p_pic; picture_t *p_pic;
I_OUTPUTPICTURES = 0; I_OUTPUTPICTURES = 0;
...@@ -498,7 +498,7 @@ static int InitVideo( vout_thread_t *p_vout ) ...@@ -498,7 +498,7 @@ static int InitVideo( vout_thread_t *p_vout )
*****************************************************************************/ *****************************************************************************/
static void DisplayVideo( vout_thread_t *p_vout, picture_t *p_pic ) static void DisplayVideo( vout_thread_t *p_vout, picture_t *p_pic )
{ {
int i_width, i_height, i_x, i_y; unsigned int i_width, i_height, i_x, i_y;
vout_PlacePicture( p_vout, p_vout->p_sys->p_win->i_width, vout_PlacePicture( p_vout, p_vout->p_sys->p_win->i_width,
p_vout->p_sys->p_win->i_height, p_vout->p_sys->p_win->i_height,
...@@ -791,7 +791,7 @@ static int ManageVideo( vout_thread_t *p_vout ) ...@@ -791,7 +791,7 @@ static int ManageVideo( vout_thread_t *p_vout )
/* Mouse move */ /* Mouse move */
else if( xevent.type == MotionNotify ) else if( xevent.type == MotionNotify )
{ {
int i_width, i_height, i_x, i_y; unsigned int i_width, i_height, i_x, i_y;
vlc_value_t val; vlc_value_t val;
/* somewhat different use for vout_PlacePicture: /* somewhat different use for vout_PlacePicture:
...@@ -919,7 +919,7 @@ static int ManageVideo( vout_thread_t *p_vout ) ...@@ -919,7 +919,7 @@ static int ManageVideo( vout_thread_t *p_vout )
*/ */
if( p_vout->i_changes & VOUT_SIZE_CHANGE ) if( p_vout->i_changes & VOUT_SIZE_CHANGE )
{ {
int i_width, i_height, i_x, i_y; unsigned int i_width, i_height, i_x, i_y;
p_vout->i_changes &= ~VOUT_SIZE_CHANGE; p_vout->i_changes &= ~VOUT_SIZE_CHANGE;
...@@ -1100,7 +1100,8 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win ) ...@@ -1100,7 +1100,8 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win )
else else
{ {
Window dummy1; Window dummy1;
unsigned int dummy2, dummy3; int dummy2, dummy3;
unsigned int dummy4, dummy5;
/* Select events we are interested in. */ /* Select events we are interested in. */
XSelectInput( p_vout->p_sys->p_display, p_win->owner_window, XSelectInput( p_vout->p_sys->p_display, p_win->owner_window,
...@@ -1111,7 +1112,7 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win ) ...@@ -1111,7 +1112,7 @@ static int CreateWindow( vout_thread_t *p_vout, x11_window_t *p_win )
&dummy1, &dummy2, &dummy3, &dummy1, &dummy2, &dummy3,
&p_win->i_width, &p_win->i_width,
&p_win->i_height, &p_win->i_height,
&dummy2, &dummy3 ); &dummy4, &dummy5 );
/* We are already configured */ /* We are already configured */
b_configure_notify = VLC_TRUE; b_configure_notify = VLC_TRUE;
...@@ -1806,7 +1807,8 @@ static int XVideoGetPort( vout_thread_t *p_vout, ...@@ -1806,7 +1807,8 @@ static int XVideoGetPort( vout_thread_t *p_vout,
{ {
XvAdaptorInfo *p_adaptor; XvAdaptorInfo *p_adaptor;
unsigned int i; unsigned int i;
int i_adaptor, i_num_adaptors, i_requested_adaptor; unsigned int i_adaptor, i_num_adaptors;
int i_requested_adaptor;
int i_selected_port; int i_selected_port;
switch( XvQueryExtension( p_vout->p_sys->p_display, &i, &i, &i, &i, &i ) ) switch( XvQueryExtension( p_vout->p_sys->p_display, &i, &i, &i, &i, &i ) )
...@@ -1858,7 +1860,7 @@ static int XVideoGetPort( vout_thread_t *p_vout, ...@@ -1858,7 +1860,7 @@ static int XVideoGetPort( vout_thread_t *p_vout,
/* If we requested an adaptor and it's not this one, we aren't /* If we requested an adaptor and it's not this one, we aren't
* interested */ * interested */
if( i_requested_adaptor != -1 && i_adaptor != i_requested_adaptor ) if( i_requested_adaptor != -1 && ((int)i_adaptor != i_requested_adaptor) )
{ {
continue; continue;
} }
...@@ -2266,10 +2268,10 @@ static IMAGE_TYPE * CreateImage( vout_thread_t *p_vout, ...@@ -2266,10 +2268,10 @@ static IMAGE_TYPE * CreateImage( vout_thread_t *p_vout,
/* Create XImage. p_data will be automatically freed */ /* Create XImage. p_data will be automatically freed */
#ifdef MODULE_NAME_IS_xvideo #ifdef MODULE_NAME_IS_xvideo
p_image = XvCreateImage( p_display, i_xvport, i_chroma, p_image = XvCreateImage( p_display, i_xvport, i_chroma,
p_data, i_width, i_height ); (char *)p_data, i_width, i_height );
#elif defined(MODULE_NAME_IS_x11) #elif defined(MODULE_NAME_IS_x11)
p_image = XCreateImage( p_display, p_visual, i_depth, ZPixmap, 0, p_image = XCreateImage( p_display, p_visual, i_depth, ZPixmap, 0,
p_data, i_width, i_height, i_quantum, 0 ); (char *)p_data, i_width, i_height, i_quantum, 0 );
#endif #endif
if( p_image == NULL ) if( p_image == NULL )
{ {
......
...@@ -117,10 +117,10 @@ struct vout_sys_t ...@@ -117,10 +117,10 @@ struct vout_sys_t
#endif #endif
/* Screen saver properties */ /* Screen saver properties */
unsigned int i_ss_timeout; /* timeout */ int i_ss_timeout; /* timeout */
unsigned int i_ss_interval; /* interval between changes */ int i_ss_interval; /* interval between changes */
unsigned int i_ss_blanking; /* blanking mode */ int i_ss_blanking; /* blanking mode */
unsigned int i_ss_exposure; /* exposure mode */ int i_ss_exposure; /* exposure mode */
#ifdef DPMSINFO_IN_DPMS_H #ifdef DPMSINFO_IN_DPMS_H
BOOL b_ss_dpms; /* DPMS mode */ BOOL b_ss_dpms; /* DPMS mode */
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment