gstreamer-rs/gstreamer-rtsp-server/src/rtsp_media_factory.rs
Sebastian Dröge abbc85c3d0 Remove unnecessary trait sealing
For all these traits only the implementation that already exists is possible.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1563>
2024-10-20 17:48:45 +00:00

19 lines
638 B
Rust

// Take a look at the license at the top of the repository in the LICENSE file.
use glib::{prelude::*, translate::*};
use crate::{ffi, RTSPMediaFactory};
pub trait RTSPMediaFactoryExtManual: IsA<RTSPMediaFactory> + 'static {
#[doc(alias = "gst_rtsp_media_factory_add_role_from_structure")]
fn add_role_from_structure(&self, structure: &gst::StructureRef) {
unsafe {
ffi::gst_rtsp_media_factory_add_role_from_structure(
self.as_ref().to_glib_none().0,
structure.as_mut_ptr(),
);
}
}
}
impl<O: IsA<RTSPMediaFactory>> RTSPMediaFactoryExtManual for O {}