From 080f6a3906204c63d12892881494969fb418baff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 3 Sep 2020 10:13:09 +0300 Subject: [PATCH] gstreamer/log: Fix debug_remove_default_log_function() to actually work We have to pass `NULL` / `None` instead of the actual default log function as because of `-Bsymbolic` or how DLLs work on Windows the external function pointer is different to the internal one. --- gstreamer/src/log.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer/src/log.rs b/gstreamer/src/log.rs index edb96bdc9..19ec03c39 100644 --- a/gstreamer/src/log.rs +++ b/gstreamer/src/log.rs @@ -382,7 +382,7 @@ where pub fn debug_remove_default_log_function() { skip_assert_initialized!(); unsafe { - gst_sys::gst_debug_remove_log_function(Some(gst_sys::gst_debug_log_default)); + gst_sys::gst_debug_remove_log_function(None); } }