summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/hwdec/hwdec_aimagereader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/hwdec/hwdec_aimagereader.c b/video/out/hwdec/hwdec_aimagereader.c
index 20c937438a..10f1c85687 100644
--- a/video/out/hwdec/hwdec_aimagereader.c
+++ b/video/out/hwdec/hwdec_aimagereader.c
@@ -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,