gstreamer: Add documentation to gst::deinit() about when it's safe to be called

This commit is contained in:
Sebastian Dröge 2019-11-14 11:44:17 +01:00 committed by Sebastian Dröge
parent 8b687ab4a7
commit 0c944cb26e
2 changed files with 12 additions and 0 deletions

View file

@ -43,6 +43,12 @@ pub fn init() -> Result<(), glib::BoolError> {
}
}
/// Deinitialize GStreamer Editing Services
///
/// # Safety
///
/// This must only be called once during the lifetime of the process, once no GStreamer threads
/// are running anymore and all GStreamer resources are released.
pub unsafe fn deinit() {
ges_sys::ges_deinit();
}

View file

@ -292,6 +292,12 @@ pub fn init() -> Result<(), glib::Error> {
}
}
/// Deinitialize GStreamer
///
/// # Safety
///
/// This must only be called once during the lifetime of the process, once no GStreamer threads
/// are running anymore and all GStreamer resources are released.
pub unsafe fn deinit() {
gst_sys::gst_deinit();
}