validate:monitor: Only get_name on GstObject

GObject don't have such method!

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/235>
This commit is contained in:
Thibault Saunier 2021-01-12 15:36:05 -03:00 committed by GStreamer Marge Bot
parent 1fd8c1501a
commit 2247cdadca

View file

@ -415,7 +415,7 @@ gst_validate_monitor_set_property (GObject * object, guint prop_id,
g_assert (gst_validate_monitor_get_target (monitor) == NULL);
g_weak_ref_init (&monitor->target, target);
if (target)
if (GST_IS_OBJECT (target))
gst_validate_reporter_set_name (GST_VALIDATE_REPORTER (monitor),
gst_object_get_name (target));