2006-01-18 13:44:00 +01:00
|
|
|
$NetBSD: patch-ag,v 1.1 2006/01/18 12:44:03 jmmv Exp $
|
2005-06-14 09:47:17 +02:00
|
|
|
|
|
|
|
Removed the #define directive from the inside of a macro expansion.
|
|
|
|
Needed for gcc-2.95 and possibly others.
|
|
|
|
|
2005-08-21 13:27:54 +02:00
|
|
|
--- sys/glsink/glimagesink.c.orig 2005-06-14 18:38:03.000000000 +0200
|
|
|
|
+++ sys/glsink/glimagesink.c
|
|
|
|
@@ -46,6 +46,12 @@ GST_ELEMENT_DETAILS ("Video sink",
|
|
|
|
"An OpenGL 1.2 based videosink",
|
|
|
|
"Gernot Ziegler <gz@lysator.liu.se>, Julien Moutte <julien@moutte.net>");
|
|
|
|
|
|
|
|
+#ifdef GL_YCBCR_MESA
|
2005-06-14 09:47:17 +02:00
|
|
|
+# define YUV_FOO ";" GST_VIDEO_CAPS_YUV ("{ UYVY, YUY2 }")
|
|
|
|
+#else
|
2005-08-21 13:27:54 +02:00
|
|
|
+# define YUV_FOO
|
2005-06-14 09:47:17 +02:00
|
|
|
+#endif
|
2005-08-21 13:27:54 +02:00
|
|
|
+
|
|
|
|
/* Default template - initiated with class struct to allow gst-register to work
|
|
|
|
without X running */
|
|
|
|
static GstStaticPadTemplate gst_glimagesink_sink_template_factory =
|
|
|
|
@@ -53,12 +59,12 @@ static GstStaticPadTemplate gst_glimages
|
2005-06-14 09:47:17 +02:00
|
|
|
GST_PAD_SINK,
|
|
|
|
GST_PAD_ALWAYS,
|
|
|
|
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGBx ";" GST_VIDEO_CAPS_BGRx
|
2005-08-21 13:27:54 +02:00
|
|
|
-#ifdef GL_YCBCR_MESA
|
2005-06-14 09:47:17 +02:00
|
|
|
- ";" GST_VIDEO_CAPS_YUV ("{ UYVY, YUY2 }")
|
|
|
|
-#endif
|
|
|
|
+ YUV_FOO
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2005-08-21 13:27:54 +02:00
|
|
|
+#undef YUV_FOO
|
|
|
|
+
|
2005-06-14 09:47:17 +02:00
|
|
|
#if 0
|
|
|
|
enum
|
2005-08-21 13:27:54 +02:00
|
|
|
{
|