validate:monitor: Only get_name on GstObject
authorThibault Saunier <tsaunier@igalia.com>
Tue, 12 Jan 2021 18:36:05 +0000 (15:36 -0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 14 May 2021 01:59:09 +0000 (01:59 +0000)
GObject don't have such method!

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/235>

validate/gst/validate/gst-validate-monitor.c

index a6d349439056a4fe899bc8ea50c1d62f1e312649..b6b75f6ba04444b331aa179cfa72458fd1b73a87 100644 (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));