*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);
if (ret != Success)
return ret;
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)
continue;
Status ret;
struct vl_screen *vscreen;
struct pipe_context *pipe;
- struct pipe_video_codec templat = {};
+ struct pipe_video_codec templat = {0};
XvMCContextPrivate *context_priv;
vl_csc_matrix csc;
struct pipe_video_buffer *video_buffer;
/* nonzero if this picture is already being decoded */
- int picture_structure;
+ unsigned picture_structure;
XvMCSurface *ref[2];
#define XVMC_WARN 2
#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;