debugutils: Ensure we always expose a bin_to_dot_data implementation
authorPhilippe Normand <philn@igalia.com>
Wed, 25 Oct 2023 12:58:55 +0000 (13:58 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 27 Oct 2023 18:06:51 +0000 (18:06 +0000)
Fixes a linking issue when building with `-Dgst_debug=false`.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5563>

subprojects/gstreamer/gst/gstdebugutils.c

index 8ca334a..b646eef 100644 (file)
@@ -922,6 +922,13 @@ gst_debug_bin_to_dot_file_with_ts (GstBin * bin,
 }
 #else /* !GST_DISABLE_GST_DEBUG */
 #ifndef GST_REMOVE_DISABLED
+
+gchar *
+gst_debug_bin_to_dot_data (GstBin * bin, GstDebugGraphDetails details)
+{
+  return g_strdup ("");
+}
+
 void
 gst_debug_bin_to_dot_file (GstBin * bin, GstDebugGraphDetails details,
     const gchar * file_name)