harness: Fix object used to log caps warning.
authorDoug Nazar <nazard@nazar.ca>
Wed, 21 Apr 2021 03:54:52 +0000 (23:54 -0400)
committerDoug Nazar <nazard@nazar.ca>
Wed, 21 Apr 2021 03:54:52 +0000 (23:54 -0400)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/801>

libs/gst/check/gstharness.c

index 3f5dca1..0246747 100644 (file)
@@ -361,7 +361,8 @@ gst_harness_negotiate (GstHarness * h)
     gst_harness_decide_allocation (h, caps);
     gst_caps_unref (caps);
   } else {
-    GST_FIXME_OBJECT (h, "Cannot negotiate allocation because caps is not set");
+    GST_FIXME_OBJECT (h->srcpad,
+        "Cannot negotiate allocation because caps is not set");
   }
 }