mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-13 19:44:10 +00:00
warnings: avoid set-but-unused warnings with load-save disabled
This commit is contained in:
parent
7eb796d447
commit
52e3861e91
4 changed files with 31 additions and 24 deletions
12
gst/gstbin.c
12
gst/gstbin.c
|
@ -401,15 +401,13 @@ _gst_boolean_accumulator (GSignalInvocationHint * ihint,
|
|||
static void
|
||||
gst_bin_class_init (GstBinClass * klass)
|
||||
{
|
||||
GObjectClass *gobject_class;
|
||||
GstObjectClass *gstobject_class;
|
||||
GstElementClass *gstelement_class;
|
||||
GObjectClass *gobject_class = (GObjectClass *) klass;
|
||||
#if !defined(GST_DISABLE_LOADSAVE) && !defined(GST_REMOVE_DEPRECATED)
|
||||
GstObjectClass *gstobject_class = (GstObjectClass *) klass;
|
||||
#endif
|
||||
GstElementClass *gstelement_class = (GstElementClass *) klass;
|
||||
GError *err;
|
||||
|
||||
gobject_class = (GObjectClass *) klass;
|
||||
gstobject_class = (GstObjectClass *) klass;
|
||||
gstelement_class = (GstElementClass *) klass;
|
||||
|
||||
g_type_class_add_private (klass, sizeof (GstBinPrivate));
|
||||
|
||||
gobject_class->set_property = gst_bin_set_property;
|
||||
|
|
|
@ -192,11 +192,10 @@ gst_element_get_type (void)
|
|||
static void
|
||||
gst_element_class_init (GstElementClass * klass)
|
||||
{
|
||||
GObjectClass *gobject_class;
|
||||
GstObjectClass *gstobject_class;
|
||||
|
||||
gobject_class = (GObjectClass *) klass;
|
||||
gstobject_class = (GstObjectClass *) klass;
|
||||
GObjectClass *gobject_class = (GObjectClass *) klass;
|
||||
#if !defined(GST_DISABLE_LOADSAVE) && !defined(GST_REMOVE_DEPRECATED)
|
||||
GstObjectClass *gstobject_class = (GstObjectClass *) klass;
|
||||
#endif
|
||||
|
||||
parent_class = g_type_class_peek_parent (klass);
|
||||
|
||||
|
|
|
@ -664,22 +664,28 @@ print_element_flag_info (GstElement * element)
|
|||
static void
|
||||
print_implementation_info (GstElement * element)
|
||||
{
|
||||
GstObjectClass *gstobject_class;
|
||||
GstElementClass *gstelement_class;
|
||||
|
||||
gstobject_class = GST_OBJECT_CLASS (G_OBJECT_GET_CLASS (element));
|
||||
gstelement_class = GST_ELEMENT_CLASS (G_OBJECT_GET_CLASS (element));
|
||||
|
||||
n_print ("\n");
|
||||
n_print ("Element Implementation:\n");
|
||||
|
||||
n_print (" Has change_state() function: %s\n",
|
||||
GST_DEBUG_FUNCPTR_NAME (gstelement_class->change_state));
|
||||
{
|
||||
GstElementClass *gstelement_class;
|
||||
|
||||
gstelement_class = GST_ELEMENT_CLASS (G_OBJECT_GET_CLASS (element));
|
||||
|
||||
n_print (" Has change_state() function: %s\n",
|
||||
GST_DEBUG_FUNCPTR_NAME (gstelement_class->change_state));
|
||||
}
|
||||
#ifndef GST_DISABLE_LOADSAVE
|
||||
n_print (" Has custom save_thyself() function: %s\n",
|
||||
GST_DEBUG_FUNCPTR_NAME (gstobject_class->save_thyself));
|
||||
n_print (" Has custom restore_thyself() function: %s\n",
|
||||
GST_DEBUG_FUNCPTR_NAME (gstobject_class->restore_thyself));
|
||||
{
|
||||
GstObjectClass *gstobject_class;
|
||||
|
||||
gstobject_class = GST_OBJECT_CLASS (G_OBJECT_GET_CLASS (element));
|
||||
|
||||
n_print (" Has custom save_thyself() function: %s\n",
|
||||
GST_DEBUG_FUNCPTR_NAME (gstobject_class->save_thyself));
|
||||
n_print (" Has custom restore_thyself() function: %s\n",
|
||||
GST_DEBUG_FUNCPTR_NAME (gstobject_class->restore_thyself));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -438,7 +438,9 @@ static gint
|
|||
print_element_info (GstElementFactory * factory)
|
||||
{
|
||||
GstElement *element;
|
||||
#ifndef GST_DISABLE_LOADSAVE
|
||||
GstObjectClass *gstobject_class;
|
||||
#endif
|
||||
GstElementClass *gstelement_class;
|
||||
GList *pads;
|
||||
GstPad *pad;
|
||||
|
@ -453,7 +455,9 @@ print_element_info (GstElementFactory * factory)
|
|||
PUT_START_TAG (0, "element");
|
||||
PUT_ESCAPED (1, "name", GST_PLUGIN_FEATURE_NAME (factory));
|
||||
|
||||
#ifndef GST_DISABLE_LOADSAVE
|
||||
gstobject_class = GST_OBJECT_CLASS (G_OBJECT_GET_CLASS (element));
|
||||
#endif
|
||||
gstelement_class = GST_ELEMENT_CLASS (G_OBJECT_GET_CLASS (element));
|
||||
|
||||
PUT_START_TAG (1, "details");
|
||||
|
|
Loading…
Reference in a new issue