mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
Don't use class casts before they're initialized
Original commit message from CVS: Don't use class casts before they're initialized
This commit is contained in:
parent
ec6cfad7fd
commit
00e390d267
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue