From 61ea5d0a17bcb0906a75b07f003132747c235070 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sun, 7 Dec 2003 22:39:03 +0000 Subject: 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(-) (limited to 'gst-libs') 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; } /** -- cgit v1.2.1