mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +00:00
gstreamer: Add documentation to gst::deinit() about when it's safe to be called
This commit is contained in:
parent
8b687ab4a7
commit
0c944cb26e
2 changed files with 12 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue