st/xvmc: Fix compiler warnings

Mostly signed/unsigned comparison

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
Jan Vesely 2014-12-02 15:14:16 -05:00 committed by Christian König
parent 712a4c5438
commit a2f2eebfdf
3 changed files with 6 additions and 6 deletions

View file

@ -67,7 +67,7 @@ static Status Validate(Display *dpy, XvPortID port, int surface_type_id,
*found_port = false; *found_port = false;
for (unsigned int i = 0; i < XScreenCount(dpy); ++i) { for (int i = 0; i < XScreenCount(dpy); ++i) {
ret = XvQueryAdaptors(dpy, XRootWindow(dpy, i), &num_adaptors, &adaptor_info); ret = XvQueryAdaptors(dpy, XRootWindow(dpy, i), &num_adaptors, &adaptor_info);
if (ret != Success) if (ret != Success)
return ret; return ret;
@ -87,7 +87,7 @@ static Status Validate(Display *dpy, XvPortID port, int surface_type_id,
return BadAlloc; return BadAlloc;
} }
for (unsigned int l = 0; l < num_types && !found_surface; ++l) { for (int l = 0; l < num_types && !found_surface; ++l) {
if (surface_info[l].surface_type_id != surface_type_id) if (surface_info[l].surface_type_id != surface_type_id)
continue; continue;
@ -191,7 +191,7 @@ Status XvMCCreateContext(Display *dpy, XvPortID port, int surface_type_id,
Status ret; Status ret;
struct vl_screen *vscreen; struct vl_screen *vscreen;
struct pipe_context *pipe; struct pipe_context *pipe;
struct pipe_video_codec templat = {}; struct pipe_video_codec templat = {0};
XvMCContextPrivate *context_priv; XvMCContextPrivate *context_priv;
vl_csc_matrix csc; vl_csc_matrix csc;

View file

@ -112,7 +112,7 @@ static Status Validate(Display *dpy, XvPortID port, int surface_type_id, int xvi
{ {
XvImageFormatValues *subpictures; XvImageFormatValues *subpictures;
int num_subpics; int num_subpics;
unsigned int i; int i;
subpictures = XvMCListSubpictureTypes(dpy, port, surface_type_id, &num_subpics); subpictures = XvMCListSubpictureTypes(dpy, port, surface_type_id, &num_subpics);
if (num_subpics < 1) { if (num_subpics < 1) {

View file

@ -69,7 +69,7 @@ typedef struct
struct pipe_video_buffer *video_buffer; struct pipe_video_buffer *video_buffer;
/* nonzero if this picture is already being decoded */ /* nonzero if this picture is already being decoded */
int picture_structure; unsigned picture_structure;
XvMCSurface *ref[2]; XvMCSurface *ref[2];
@ -106,7 +106,7 @@ typedef struct
#define XVMC_WARN 2 #define XVMC_WARN 2
#define XVMC_TRACE 3 #define XVMC_TRACE 3
static INLINE void XVMC_MSG(unsigned int level, const char *fmt, ...) static INLINE void XVMC_MSG(int level, const char *fmt, ...)
{ {
static int debug_level = -1; static int debug_level = -1;