gstreamer_rtsp_server/
rtsp_media_factory.rsuse 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 {}