From 1a6b357b390c7181c4f156e411cc44fa5ef1f050 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 15 Jul 2013 21:44:20 +0200 Subject: [PATCH] [759/906] gldownload: #ifdef some GLES2 specific code to fix compilation --- gst-libs/gst/gl/gstgldownload.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst-libs/gst/gl/gstgldownload.c b/gst-libs/gst/gl/gstgldownload.c index 513ac52..c470099 100644 --- a/gst-libs/gst/gl/gstgldownload.c +++ b/gst-libs/gst/gl/gstgldownload.c @@ -969,6 +969,7 @@ _init_download_shader (GstGLDisplay * display, GstGLDownload * download) case GST_VIDEO_FORMAT_ABGR: case GST_VIDEO_FORMAT_RGB: case GST_VIDEO_FORMAT_BGR: +#if GST_GL_HAVE_GLES2 { gchar text_shader_ARGB[2048]; @@ -1002,6 +1003,10 @@ _init_download_shader (GstGLDisplay * display, GstGLDownload * download) } break; } +#else + g_assert_not_reached (); + break; +#endif default: gst_gl_display_set_error (display, "Unsupported download video format %d", v_format); -- 2.7.4