mirror of https://github.com/mpv-player/mpv
hwdec_aimagereader: fix incorrect return values
This commit is contained in:
parent
375076578f
commit
42cfed002f
|
@ -139,7 +139,7 @@ static int init(struct ra_hwdec *hw)
|
|||
return -1;
|
||||
|
||||
if (!load_lib_functions(p, hw->log))
|
||||
return false;
|
||||
return -1;
|
||||
|
||||
static const char *es2_exts[] = {"GL_OES_EGL_image_external", 0};
|
||||
static const char *es3_exts[] = {"GL_OES_EGL_image_external_essl3", 0};
|
||||
|
@ -237,7 +237,7 @@ static int mapper_init(struct ra_hwdec_mapper *mapper)
|
|||
|
||||
if (!p->CreateImageKHR || !p->DestroyImageKHR ||
|
||||
!p->GetNativeClientBufferANDROID || !p->EGLImageTargetTexture2DOES)
|
||||
return false;
|
||||
return -1;
|
||||
|
||||
AImageReader_ImageListener listener = {
|
||||
.context = p,
|
||||
|
|
Loading…
Reference in New Issue