summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2004-03-12 21:43:25 +0000
committerBenjamin Otte <otte@gnome.org>2004-03-12 21:43:25 +0000
commit19d221ba71d224c2b536f562435a07abef8014ea (patch)
tree6cebed7847191c92f62cc60061c19fcdf3baa1ec
parenta008df2d01bcea67a88307c7aa92b384475df176 (diff)
downloadgstreamer-plugins-base-19d221ba71d224c2b536f562435a07abef8014ea.tar.gz
gst-libs/gst/xoverlay/xoverlay.*: replace XID with unsigned long to get rid of the xlibs dependency in
Original commit message from CVS: * gst-libs/gst/xoverlay/xoverlay.c: (gst_x_overlay_set_xwindow_id), (gst_x_overlay_got_xwindow_id): * gst-libs/gst/xoverlay/xoverlay.h: replace XID with unsigned long to get rid of the xlibs dependency in XOverlay (fixes #137004)
-rw-r--r--ChangeLog8
-rw-r--r--gst-libs/gst/interfaces/xoverlay.c4
-rw-r--r--gst-libs/gst/interfaces/xoverlay.h9
-rw-r--r--gst-libs/gst/xoverlay/xoverlay.c4
-rw-r--r--gst-libs/gst/xoverlay/xoverlay.h9
5 files changed, 20 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 65b34d668..83530a481 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-03-12 Benjamin Otte <otte@gnome.org>
+
+ * gst-libs/gst/xoverlay/xoverlay.c: (gst_x_overlay_set_xwindow_id),
+ (gst_x_overlay_got_xwindow_id):
+ * gst-libs/gst/xoverlay/xoverlay.h:
+ replace XID with unsigned long to get rid of the xlibs dependency in
+ XOverlay (fixes #137004)
+
2004-03-13 Jan Schmidt <thaytan@mad.scientist.com>
* gst/effectv/gstaging.c: (gst_agingtv_base_init),
(gst_agingtv_setup):
diff --git a/gst-libs/gst/interfaces/xoverlay.c b/gst-libs/gst/interfaces/xoverlay.c
index ed07c4565..66af8d625 100644
--- a/gst-libs/gst/interfaces/xoverlay.c
+++ b/gst-libs/gst/interfaces/xoverlay.c
@@ -107,7 +107,7 @@ gst_x_overlay_base_init (gpointer g_class)
* stop using that window and create an internal one.
*/
void
-gst_x_overlay_set_xwindow_id (GstXOverlay *overlay, XID xwindow_id)
+gst_x_overlay_set_xwindow_id (GstXOverlay *overlay, gulong xwindow_id)
{
GstXOverlayClass *klass = GST_X_OVERLAY_GET_CLASS (overlay);
@@ -126,7 +126,7 @@ gst_x_overlay_set_xwindow_id (GstXOverlay *overlay, XID xwindow_id)
* This function should be used by video overlay developpers.
*/
void
-gst_x_overlay_got_xwindow_id (GstXOverlay *overlay, XID xwindow_id)
+gst_x_overlay_got_xwindow_id (GstXOverlay *overlay, gulong xwindow_id)
{
g_return_if_fail (overlay != NULL);
g_return_if_fail (GST_IS_X_OVERLAY (overlay));
diff --git a/gst-libs/gst/interfaces/xoverlay.h b/gst-libs/gst/interfaces/xoverlay.h
index d92dc5ff0..5318fef31 100644
--- a/gst-libs/gst/interfaces/xoverlay.h
+++ b/gst-libs/gst/interfaces/xoverlay.h
@@ -24,7 +24,6 @@
#define __GST_X_OVERLAY_H__
#include <gst/gst.h>
-#include <X11/Xlib.h>
G_BEGIN_DECLS
@@ -49,7 +48,7 @@ typedef struct _GstXOverlayClass {
/* virtual functions */
void (* set_xwindow_id) (GstXOverlay *overlay,
- XID xwindow_id);
+ gulong xwindow_id);
/* optional virtual functions */
void (* get_desired_size) (GstXOverlay *overlay,
guint *width,
@@ -58,7 +57,7 @@ typedef struct _GstXOverlayClass {
/* signals */
void (*have_xwindow_id) (GstXOverlay *overlay,
- XID xwindow_id);
+ gulong xwindow_id);
void (* desired_size) (GstXOverlay *overlay,
guint width,
guint height);
@@ -69,12 +68,12 @@ typedef struct _GstXOverlayClass {
GType gst_x_overlay_get_type (void);
/* virtual class function wrappers */
-void gst_x_overlay_set_xwindow_id (GstXOverlay *overlay, XID xwindow_id);
+void gst_x_overlay_set_xwindow_id (GstXOverlay *overlay, gulong xwindow_id);
void gst_x_overlay_get_desired_size (GstXOverlay *overlay, guint *width, guint *height);
void gst_x_overlay_expose (GstXOverlay *overlay);
/* public methods to fire signals */
-void gst_x_overlay_got_xwindow_id (GstXOverlay *overlay, XID xwindow_id);
+void gst_x_overlay_got_xwindow_id (GstXOverlay *overlay, gulong xwindow_id);
void gst_x_overlay_got_desired_size (GstXOverlay *overlay, guint width, guint height);
G_END_DECLS
diff --git a/gst-libs/gst/xoverlay/xoverlay.c b/gst-libs/gst/xoverlay/xoverlay.c
index ed07c4565..66af8d625 100644
--- a/gst-libs/gst/xoverlay/xoverlay.c
+++ b/gst-libs/gst/xoverlay/xoverlay.c
@@ -107,7 +107,7 @@ gst_x_overlay_base_init (gpointer g_class)
* stop using that window and create an internal one.
*/
void
-gst_x_overlay_set_xwindow_id (GstXOverlay *overlay, XID xwindow_id)
+gst_x_overlay_set_xwindow_id (GstXOverlay *overlay, gulong xwindow_id)
{
GstXOverlayClass *klass = GST_X_OVERLAY_GET_CLASS (overlay);
@@ -126,7 +126,7 @@ gst_x_overlay_set_xwindow_id (GstXOverlay *overlay, XID xwindow_id)
* This function should be used by video overlay developpers.
*/
void
-gst_x_overlay_got_xwindow_id (GstXOverlay *overlay, XID xwindow_id)
+gst_x_overlay_got_xwindow_id (GstXOverlay *overlay, gulong xwindow_id)
{
g_return_if_fail (overlay != NULL);
g_return_if_fail (GST_IS_X_OVERLAY (overlay));
diff --git a/gst-libs/gst/xoverlay/xoverlay.h b/gst-libs/gst/xoverlay/xoverlay.h
index d92dc5ff0..5318fef31 100644
--- a/gst-libs/gst/xoverlay/xoverlay.h
+++ b/gst-libs/gst/xoverlay/xoverlay.h
@@ -24,7 +24,6 @@
#define __GST_X_OVERLAY_H__
#include <gst/gst.h>
-#include <X11/Xlib.h>
G_BEGIN_DECLS
@@ -49,7 +48,7 @@ typedef struct _GstXOverlayClass {
/* virtual functions */
void (* set_xwindow_id) (GstXOverlay *overlay,
- XID xwindow_id);
+ gulong xwindow_id);
/* optional virtual functions */
void (* get_desired_size) (GstXOverlay *overlay,
guint *width,
@@ -58,7 +57,7 @@ typedef struct _GstXOverlayClass {
/* signals */
void (*have_xwindow_id) (GstXOverlay *overlay,
- XID xwindow_id);
+ gulong xwindow_id);
void (* desired_size) (GstXOverlay *overlay,
guint width,
guint height);
@@ -69,12 +68,12 @@ typedef struct _GstXOverlayClass {
GType gst_x_overlay_get_type (void);
/* virtual class function wrappers */
-void gst_x_overlay_set_xwindow_id (GstXOverlay *overlay, XID xwindow_id);
+void gst_x_overlay_set_xwindow_id (GstXOverlay *overlay, gulong xwindow_id);
void gst_x_overlay_get_desired_size (GstXOverlay *overlay, guint *width, guint *height);
void gst_x_overlay_expose (GstXOverlay *overlay);
/* public methods to fire signals */
-void gst_x_overlay_got_xwindow_id (GstXOverlay *overlay, XID xwindow_id);
+void gst_x_overlay_got_xwindow_id (GstXOverlay *overlay, gulong xwindow_id);
void gst_x_overlay_got_desired_size (GstXOverlay *overlay, guint width, guint height);
G_END_DECLS