summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-12-07 22:39:03 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-12-07 22:39:03 +0000
commit61ea5d0a17bcb0906a75b07f003132747c235070 (patch)
tree9a8fcb0b34fb2999f0fcd34778a5dac2a438a3c1
parentc9d7a8617b4f61f0eb4178afcb86f40727a744a3 (diff)
downloadgst-plugins-bad-61ea5d0a17bcb0906a75b07f003132747c235070.tar.gz
gst-plugins-bad-61ea5d0a17bcb0906a75b07f003132747c235070.tar.bz2
gst-plugins-bad-61ea5d0a17bcb0906a75b07f003132747c235070.zip
Don't use class casts before they're initialized
Original commit message from CVS: Don't use class casts before they're initialized
-rw-r--r--gst-libs/gst/xoverlay/xoverlay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/xoverlay/xoverlay.c b/gst-libs/gst/xoverlay/xoverlay.c
index 6a6afe5b..390453c1 100644
--- a/gst-libs/gst/xoverlay/xoverlay.c
+++ b/gst-libs/gst/xoverlay/xoverlay.c
@@ -65,6 +65,7 @@ gst_x_overlay_get_type (void)
static void
gst_x_overlay_base_init (gpointer g_class)
{
+ GstXOverlayClass *overlay_class = (GstXOverlayClass *) g_class;
static gboolean initialized = FALSE;
if (! initialized)
@@ -80,7 +81,7 @@ gst_x_overlay_base_init (gpointer g_class)
initialized = TRUE;
}
- GST_X_OVERLAY_CLASS (g_class)->set_xwindow_id = NULL;
+ overlay_class->set_xwindow_id = NULL;
}
/**