gstinfo: Allow passing a string identifier for debugging
authorEdward Hervey <edward@centricular.com>
Tue, 29 Nov 2022 08:37:00 +0000 (09:37 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 5 Dec 2022 09:59:30 +0000 (09:59 +0000)
commita289c61c1170f1d19c6981610e77468f3a199bd4
tree0df8599b2dfd5808908877ddc49a693cb41698be
parent1f65d7cc5c30efa4f86bfbd9a592b46d63ec2268
gstinfo: Allow passing a string identifier for debugging

This adds "id" variants to most debugging functions, and allows providing a
string identifier instead of a GObject.

This allows providing unified and clearer debug logs for all the
non-gobject-based items, and opens the way for more unified logging.

As an extension, copying the object name is avoided as much as possible, by
using it directly instead of going through another copy.

* API : gst_debug_message_get_object_id

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3483>
subprojects/gstreamer/gst/gstinfo.c
subprojects/gstreamer/gst/gstinfo.h