gstobject: avoid type checks

This commit is contained in:
Wim Taymans 2009-05-02 13:06:10 +02:00 committed by Wim Taymans
parent 13515a7535
commit 20d2734a25

View file

@ -472,12 +472,8 @@ gst_object_dispatch_properties_changed (GObject * object,
guint i;
gchar *name, *debug_name;
/* we fail when this is not a GstObject */
g_return_if_fail (GST_IS_OBJECT (object));
/* do the standard dispatching */
G_OBJECT_CLASS (parent_class)->dispatch_properties_changed (object, n_pspecs,
pspecs);
parent_class->dispatch_properties_changed (object, n_pspecs, pspecs);
gst_object = GST_OBJECT_CAST (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);
g_signal_emit (parent, gst_object_signals[DEEP_NOTIFY],
g_quark_from_string (pspecs[i]->name), GST_OBJECT_CAST (object),
pspecs[i]);
g_quark_from_string (pspecs[i]->name), gst_object, pspecs[i]);
}
old_parent = parent;