From 3fe8f41f7af1df588fb59766607f91730c932f5c Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sun, 7 Dec 2003 22:39:03 +0000 Subject: [PATCH] Don't use class casts before they're initialized Original commit message from CVS: Don't use class casts before they're initialized --- gst-libs/gst/xoverlay/xoverlay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/xoverlay/xoverlay.c b/gst-libs/gst/xoverlay/xoverlay.c index 6a6afe5b34..390453c15b 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; } /**