[gst-cvs] gst-plugins-gl: define missing glew macro on older versions

Julien Isorce cap at kemper.freedesktop.org
Mon Aug 3 08:53:55 PDT 2009


Module: gst-plugins-gl
Branch: master
Commit: 6186ec509d32030041ffb5a89aae2b53d8a5e63d
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-gl/commit/?id=6186ec509d32030041ffb5a89aae2b53d8a5e63d

Author: Julien Isorce <julien.isorce at gmail.com>
Date:   Mon Aug  3 17:52:31 2009 +0200

define missing glew macro on older versions

---

 gst-libs/gst/gl/gstgldisplay.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c
index 0f4dbcf..2933f30 100644
--- a/gst-libs/gst/gl/gstgldisplay.c
+++ b/gst-libs/gst/gl/gstgldisplay.c
@@ -27,6 +27,14 @@
 #include <gst/video/gstvideosink.h>
 #include "gstgldisplay.h"
 
+#ifndef GLEW_VERSION_MAJOR
+#define GLEW_VERSION_MAJOR 4
+#endif
+
+#ifndef GLEW_VERSION_MINOR
+#define GLEW_VERSION_MINOR 0
+#endif
+
 /*
  * gst-launch-0.10 --gst-debug=gldisplay:N pipeline
  * N=1: errors





More information about the Gstreamer-commits mailing list