gstreamer_rtsp_server/
rtsp_onvif_media_factory.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use glib::{prelude::*, translate::*};
4
5use crate::{ffi, RTSPContext, RTSPOnvifMediaFactory};
6
7pub trait RTSPOnvifMediaFactoryExtManual: IsA<RTSPOnvifMediaFactory> + 'static {
8    #[doc(alias = "gst_rtsp_onvif_media_factory_requires_backchannel")]
9    fn requires_backchannel(&self, ctx: &RTSPContext) -> bool {
10        skip_assert_initialized!();
11        unsafe {
12            from_glib(ffi::gst_rtsp_onvif_media_factory_requires_backchannel(
13                self.as_ref()
14                    .upcast_ref::<crate::RTSPMediaFactory>()
15                    .to_glib_none()
16                    .0,
17                ctx.to_glib_none().0,
18            ))
19        }
20    }
21}
22
23impl<O: IsA<RTSPOnvifMediaFactory>> RTSPOnvifMediaFactoryExtManual for O {}