summaryrefslogtreecommitdiff
path: root/multimedia/gst-plugins/patches/patch-ag
blob: bfbe21197b75baa5531ad06cb200107a2c32898a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$NetBSD: patch-ag,v 1.2 2005/08/21 11:27:54 jmmv Exp $

Removed the #define directive from the inside of a macro expansion.
Needed for gcc-2.95 and possibly others.

--- 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
+#  define YUV_FOO ";" GST_VIDEO_CAPS_YUV ("{ UYVY, YUY2 }")
+#else
+#  define YUV_FOO
+#endif
+
 /* 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
     GST_PAD_SINK,
     GST_PAD_ALWAYS,
     GST_STATIC_CAPS (GST_VIDEO_CAPS_RGBx ";" GST_VIDEO_CAPS_BGRx
-#ifdef GL_YCBCR_MESA
-        ";" GST_VIDEO_CAPS_YUV ("{ UYVY, YUY2 }")
-#endif
+    YUV_FOO
     )
     );
 
+#undef YUV_FOO
+
 #if 0
 enum
 {