gstinfo: Add gst_debug_log_literal() function
authorSebastian Dröge <sebastian@centricular.com>
Tue, 16 Nov 2021 16:05:09 +0000 (18:05 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 16 Nov 2021 16:32:55 +0000 (16:32 +0000)
commit5dc95e00fa7620937b77484db904051893d88c6c
tree680d6669ce0774e3375d187ca2369b305a5a9b0d
parenta87be69ce5eb6b91dc53732b4fcfad4bb77fb87b
gstinfo: Add gst_debug_log_literal() function

This takes a plain message string and not a format string, and as a
result doesn't have to be passed through vasprintf() and lead to further
unnecessary allocations. It can also contain literal `%` because of
that.

The new function is mostly useful for bindings that would have to pass a
full string to GStreamer anyway and would do formatting themselves with
language-specific functionality.

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