public static void BinToDotFileWithTs(Gst.Bin bin, Gst.DebugGraphDetails details, string file_name) { IntPtr native_file_name = GLib.Marshaller.StringToFilenamePtr(file_name); gst_debug_bin_to_dot_file_with_ts(bin == null ? IntPtr.Zero : bin.Handle, (int)details, native_file_name); GLib.Marshaller.Free(native_file_name); }
public static string BinToDotData(Gst.Bin bin, Gst.DebugGraphDetails details) { IntPtr raw_ret = gst_debug_bin_to_dot_data(bin == null ? IntPtr.Zero : bin.Handle, (int)details); string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); return(ret); }