From 58741b7ea2c0493d170ce806dde5b4ffbf75d57c Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Sat, 4 Aug 2018 10:39:38 +0100 Subject: [PATCH] gstreamer: Implement deinit() function This function is especially usefull when using the leaks tracer. It was removed in commit e7a0543c. --- gstreamer/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gstreamer/src/lib.rs b/gstreamer/src/lib.rs index ccf0674f3..94a73a412 100644 --- a/gstreamer/src/lib.rs +++ b/gstreamer/src/lib.rs @@ -255,6 +255,10 @@ pub fn init() -> Result<(), glib::Error> { } } +pub unsafe fn deinit() { + ffi::gst_deinit(); +} + pub const BUFFER_OFFSET_NONE: u64 = ffi::GST_BUFFER_OFFSET_NONE; pub const CLOCK_TIME_NONE: ClockTime = ClockTime(None);