omxvideodec: EGLDisplay is not indirectly defined by gstgl headers inclusion
authorJulien Isorce <jisorce@oblong.com>
Tue, 22 Aug 2017 09:22:45 +0000 (10:22 +0100)
committerJulien Isorce <jisorce@oblong.com>
Tue, 22 Aug 2017 09:29:05 +0000 (10:29 +0100)
Just use gpointer as done in GstGL to not include
EGL/egl.h just for EGLDisplay.

https://bugzilla.gnome.org/show_bug.cgi?id=784779

omx/gstomxvideodec.c

index 2c79781..fe4f337 100644 (file)
@@ -657,7 +657,7 @@ gst_omx_video_dec_allocate_output_buffers (GstOMXVideoDec * self)
     GList *images = NULL;
     gint i;
     GstBufferPoolAcquireParams params = { 0, };
-    EGLDisplay egl_display = 0;
+    gpointer egl_display = 0;
 
     GST_DEBUG_OBJECT (self, "Trying to allocate %d EGLImages", min);