[vala/staging] gstreamer-1.0: Use corresponding debug macros for Debug.bin_to_dot_file*



commit 6e7419e0a41982d2630f7ccf8667385e34469562
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Aug 26 13:39:48 2017 +0200

    gstreamer-1.0: Use corresponding debug macros for Debug.bin_to_dot_file*
    
    GST_DEBUG_BIN_TO_DOT_FILE and GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS are
    conditionally set depending on GST_DISABLE_GST_DEBUG.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=785215

 vapi/gstreamer-1.0.vapi        |    4 ++--
 vapi/metadata/Gst-1.0.metadata |    4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index 79abbb5..db1e94c 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -16,9 +16,9 @@ namespace Gst {
                public static void add_ring_buffer_logger (uint max_size_per_thread, uint thread_timeout);
                [CCode (cheader_filename = "gst/gst.h")]
                public static string bin_to_dot_data (Gst.Bin bin, Gst.DebugGraphDetails details);
-               [CCode (cheader_filename = "gst/gst.h")]
+               [CCode (cheader_filename = "gst/gst.h", cname = "GST_DEBUG_BIN_TO_DOT_FILE")]
                public static void bin_to_dot_file (Gst.Bin bin, Gst.DebugGraphDetails details, string 
file_name);
-               [CCode (cheader_filename = "gst/gst.h")]
+               [CCode (cheader_filename = "gst/gst.h", cname = "GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS")]
                public static void bin_to_dot_file_with_ts (Gst.Bin bin, Gst.DebugGraphDetails details, 
string file_name);
                [CCode (cheader_filename = "gst/gst.h")]
                public static string construct_term_color (uint colorinfo);
diff --git a/vapi/metadata/Gst-1.0.metadata b/vapi/metadata/Gst-1.0.metadata
index c34eeb6..92067bc 100644
--- a/vapi/metadata/Gst-1.0.metadata
+++ b/vapi/metadata/Gst-1.0.metadata
@@ -213,6 +213,10 @@ Toc base_type="Gst.MiniObject"
 TocEntry base_type="Gst.MiniObject"
 *.make_writable returns_modified_pointer
 
+// Use corresponding macro which depends on GST_DISABLE_GST_DEBUG
+debug_bin_to_dot_file cname="GST_DEBUG_BIN_TO_DOT_FILE"
+debug_bin_to_dot_file_with_ts cname="GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS"
+
 // Reparenting
 TAG_* parent="Gst.Tags" name="TAG_(.+)"
 tag_* parent="Gst.Tags" name="tag_(.+)"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]