gstreamer: Implement deinit() function

This function is especially usefull when using the leaks tracer. It was removed
in commit e7a0543c.
This commit is contained in:
Philippe Normand 2018-08-04 10:39:38 +01:00 committed by Sebastian Dröge
parent ccca8248c3
commit 58741b7ea2

View file

@ -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 BUFFER_OFFSET_NONE: u64 = ffi::GST_BUFFER_OFFSET_NONE;
pub const CLOCK_TIME_NONE: ClockTime = ClockTime(None); pub const CLOCK_TIME_NONE: ClockTime = ClockTime(None);