mirror of https://github.com/mpv-player/mpv
hwdec_vaapi: suppress comparision warning
comparison of unsigned expression in '< 0' is always false
This commit is contained in:
parent
b2a4c0ce91
commit
dea176a7bf
|
@ -84,16 +84,18 @@ static const struct va_create_native create_native_cbs[] = {
|
||||||
#if HAVE_VAAPI_DRM
|
#if HAVE_VAAPI_DRM
|
||||||
{"drm", create_drm_va_display},
|
{"drm", create_drm_va_display},
|
||||||
#endif
|
#endif
|
||||||
|
{0}
|
||||||
};
|
};
|
||||||
|
|
||||||
static VADisplay *create_native_va_display(struct ra *ra, struct mp_log *log)
|
static VADisplay *create_native_va_display(struct ra *ra, struct mp_log *log)
|
||||||
{
|
{
|
||||||
for (int n = 0; n < MP_ARRAY_SIZE(create_native_cbs); n++) {
|
const struct va_create_native *disp = create_native_cbs;
|
||||||
const struct va_create_native *disp = &create_native_cbs[n];
|
while (disp->name) {
|
||||||
mp_verbose(log, "Trying to open a %s VA display...\n", disp->name);
|
mp_verbose(log, "Trying to open a %s VA display...\n", disp->name);
|
||||||
VADisplay *display = disp->create(ra);
|
VADisplay *display = disp->create(ra);
|
||||||
if (display)
|
if (display)
|
||||||
return display;
|
return display;
|
||||||
|
disp++;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue