mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-03 15:06:34 +00:00
gstobject: avoid type checks
This commit is contained in:
parent
13515a7535
commit
20d2734a25
1 changed files with 2 additions and 7 deletions
|
@ -472,12 +472,8 @@ gst_object_dispatch_properties_changed (GObject * object,
|
||||||
guint i;
|
guint i;
|
||||||
gchar *name, *debug_name;
|
gchar *name, *debug_name;
|
||||||
|
|
||||||
/* we fail when this is not a GstObject */
|
|
||||||
g_return_if_fail (GST_IS_OBJECT (object));
|
|
||||||
|
|
||||||
/* do the standard dispatching */
|
/* do the standard dispatching */
|
||||||
G_OBJECT_CLASS (parent_class)->dispatch_properties_changed (object, n_pspecs,
|
parent_class->dispatch_properties_changed (object, n_pspecs, pspecs);
|
||||||
pspecs);
|
|
||||||
|
|
||||||
gst_object = GST_OBJECT_CAST (object);
|
gst_object = GST_OBJECT_CAST (object);
|
||||||
name = gst_object_get_name (gst_object);
|
name = gst_object_get_name (gst_object);
|
||||||
|
@ -491,8 +487,7 @@ gst_object_dispatch_properties_changed (GObject * object,
|
||||||
"deep notification from %s (%s)", debug_name, pspecs[i]->name);
|
"deep notification from %s (%s)", debug_name, pspecs[i]->name);
|
||||||
|
|
||||||
g_signal_emit (parent, gst_object_signals[DEEP_NOTIFY],
|
g_signal_emit (parent, gst_object_signals[DEEP_NOTIFY],
|
||||||
g_quark_from_string (pspecs[i]->name), GST_OBJECT_CAST (object),
|
g_quark_from_string (pspecs[i]->name), gst_object, pspecs[i]);
|
||||||
pspecs[i]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
old_parent = parent;
|
old_parent = parent;
|
||||||
|
|
Loading…
Reference in a new issue