From d654252e65d2e0166d3675d0323b02732630b41f Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Tue, 8 Aug 2017 19:31:03 +0100 Subject: [PATCH] gstreamer: disable calculate_linear_regression It's not binding friendly. --- Gir_Gst.toml | 4 ++++ gstreamer/src/auto/functions.rs | 14 -------------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/Gir_Gst.toml b/Gir_Gst.toml index 6ae3f817f..6304c429c 100644 --- a/Gir_Gst.toml +++ b/Gir_Gst.toml @@ -530,3 +530,7 @@ status = "generate" # unsupported array type ignore = true + [[object.function]] + name = "calculate_linear_regression" + ignore = true + diff --git a/gstreamer/src/auto/functions.rs b/gstreamer/src/auto/functions.rs index f7d5a5c65..91e813600 100644 --- a/gstreamer/src/auto/functions.rs +++ b/gstreamer/src/auto/functions.rs @@ -15,20 +15,6 @@ use std::mem; use std::ptr; -#[cfg(feature = "v1_12")] -pub fn calculate_linear_regression(xy: ClockTime, temp: ClockTime, n: u32) -> Option<(ClockTime, ClockTime, ClockTime, ClockTime, f64)> { - assert_initialized_main_thread!(); - unsafe { - let mut m_num = mem::uninitialized(); - let mut m_denom = mem::uninitialized(); - let mut b = mem::uninitialized(); - let mut xbase = mem::uninitialized(); - let mut r_squared = mem::uninitialized(); - let ret = from_glib(ffi::gst_calculate_linear_regression(xy, temp, n, &mut m_num, &mut m_denom, &mut b, &mut xbase, &mut r_squared)); - if ret { Some((m_num, m_denom, b, xbase, r_squared)) } else { None } - } -} - //pub fn debug_add_log_function>>(func: /*Unknown conversion*//*Unimplemented*/LogFunction, user_data: P, notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify) { // unsafe { TODO: call ffi::gst_debug_add_log_function() } //}