diff options
author | Sven Gothel <[email protected]> | 2015-07-16 04:47:52 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-07-16 04:47:52 +0200 |
commit | 7bcf094c8c1be5eeec60c52e09fd8f32f42cd654 (patch) | |
tree | 91f545ee381481e5c1530a6d17c2408e54f9689e /src | |
parent | 6487e3d25c55eadbf527739012e21e8f33e67a0f (diff) |
openmax: fix compile errors (clang)
Diffstat (limited to 'src')
-rw-r--r-- | src/jogl/native/openmax/jogamp_opengl_util_av_impl_OMXGLMediaPlayer.c | 2 | ||||
-rw-r--r-- | src/jogl/native/openmax/omx_tool.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/jogl/native/openmax/jogamp_opengl_util_av_impl_OMXGLMediaPlayer.c b/src/jogl/native/openmax/jogamp_opengl_util_av_impl_OMXGLMediaPlayer.c index 3166306ba..fc2fb6ea3 100644 --- a/src/jogl/native/openmax/jogamp_opengl_util_av_impl_OMXGLMediaPlayer.c +++ b/src/jogl/native/openmax/jogamp_opengl_util_av_impl_OMXGLMediaPlayer.c @@ -39,7 +39,7 @@ JNIEXPORT jboolean JNICALL Java_jogamp_opengl_util_av_impl_OMXGLMediaPlayer_init jclass c; if (omxGLMediaPlayerClazz != NULL) { - return; + return JNI_FALSE; } c = (*env)->FindClass(env, ClazzNameOMXGLMediaPlayer); diff --git a/src/jogl/native/openmax/omx_tool.h b/src/jogl/native/openmax/omx_tool.h index 022c56cf9..31abfc5b2 100644 --- a/src/jogl/native/openmax/omx_tool.h +++ b/src/jogl/native/openmax/omx_tool.h @@ -27,6 +27,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> // FIXME: Move all sync/buffer handling to Java - Already done -> GLMediaPlayerImpl #define EGLIMAGE_MAX_BUFFERS 4 |