sys/v4l2/gstv4l2xoverlay.*: Fix build as per the patch in #338818 comment 36.
authorJan Schmidt <thaytan@mad.scientist.com>
Mon, 9 Oct 2006 07:01:19 +0000 (07:01 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Mon, 9 Oct 2006 07:01:19 +0000 (07:01 +0000)
Original commit message from CVS:
* sys/v4l2/gstv4l2xoverlay.c:
* sys/v4l2/gstv4l2xoverlay.h:
Fix build as per the patch in #338818 comment 36.

ChangeLog
sys/v4l2/gstv4l2xoverlay.c
sys/v4l2/gstv4l2xoverlay.h

index 8a3f408620c7b0440ed0e9d78ccb0a827e3369a9..2dce4a2f8e6c9b2c8cf840fa8f0df6c1ac3f038f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-10-09  Jan Schmidt  <thaytan@mad.scientist.com>
+
+       * sys/v4l2/gstv4l2xoverlay.c:
+       * sys/v4l2/gstv4l2xoverlay.h:
+       Fix build as per the patch in #338818 comment 36.
+
 2006-10-07  Tim-Philipp Müller  <tim at centricular dot net>
 
        * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_stream_configure_transport):
index 5a07e510a4e264d6f78ad770fd1daa244af66161..5ac3020636adc2f7d87b93f60820c839d3d73628 100644 (file)
@@ -47,11 +47,6 @@ struct _GstV4l2Xv
 GST_DEBUG_CATEGORY_STATIC (v4l2xv_debug);
 #define GST_CAT_DEFAULT v4l2xv_debug
 
-static void gst_v4l2_xoverlay_set_xwindow_id (GstV4l2Object * v4l2object,
-    XID xwindow_id);
-
-
-
 void
 gst_v4l2_xoverlay_interface_init (GstXOverlayClass * klass)
 {
@@ -193,7 +188,7 @@ idle_refresh (gpointer data)
   return FALSE;
 }
 
-static void
+void
 gst_v4l2_xoverlay_set_xwindow_id (GstV4l2Object * v4l2object, XID xwindow_id)
 {
   GstV4l2Xv *v4l2xv;
index 8eac0e2c7b3fa2e579a8a354f7d429bfdf75cb9e..3d15ce90a4cb6403a5a62a0ba878e9e2ba72a985 100644 (file)
@@ -37,26 +37,28 @@ void gst_v4l2_xoverlay_start (GstV4l2Object  *v4l2object);
 void gst_v4l2_xoverlay_stop  (GstV4l2Object  *v4l2object);
 
 void gst_v4l2_xoverlay_interface_init (GstXOverlayClass * klass);
+void gst_v4l2_xoverlay_set_xwindow_id (GstV4l2Object * v4l2object,
+    XID xwindow_id);
 
-#define GST_IMPLEMENT_V4L2_XOVERLAY_METHODS(Type, interface_as_function)              \
-                                                                                      \
-static void                                                                           \
-interface_as_function ## _xoverlay_set_xwindow_id (GstXOverlay * xoverlay,            \
-                                                   XID xwindow_id)                    \
-{                                                                                     \
-  Type *this = (Type*) xoverlay;                                                      \
-  gst_v4l2_xoverlay_set_xwindow_id (this->v4l2object, xwindow_id);                    \
-}                                                                                     \
-                                                                                      \
-static void                                                                           \
-interface_as_function ## _xoverlay_interface_init (GstXOverlayClass * klass)          \
-{                                                                                     \
-  /* default virtual functions */                                                     \
-  klass->set_xwindow_id = interface_as_function ## _xoverlay_set_xwindow_id;          \
-                                                                                      \
-  gst_v4l2_xoverlay_interface_init(GstXOverlayClass * klass);                         \
-}                                                                                     \
-                                                                                      \
+
+#define GST_IMPLEMENT_V4L2_XOVERLAY_METHODS(Type, interface_as_function)      \
+                                                                              \
+static void                                                                   \
+interface_as_function ## _xoverlay_set_xwindow_id (GstXOverlay * xoverlay,    \
+                                                   XID xwindow_id)            \
+{                                                                             \
+  Type *this = (Type*) xoverlay;                                              \
+  gst_v4l2_xoverlay_set_xwindow_id (this->v4l2object, xwindow_id);            \
+}                                                                             \
+                                                                              \
+static void                                                                   \
+interface_as_function ## _xoverlay_interface_init (GstXOverlayClass * klass)  \
+{                                                                             \
+  /* default virtual functions */                                             \
+  klass->set_xwindow_id = interface_as_function ## _xoverlay_set_xwindow_id;  \
+                                                                              \
+  gst_v4l2_xoverlay_interface_init(klass);                                    \
+}                                                                             \
 
 
 #endif /* __GST_V4L2_X_OVERLAY_H__ */