2022-02-18 11:21:10 +00:00
|
|
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
|
|
|
|
2023-01-03 18:58:25 +00:00
|
|
|
use glib::{prelude::*, translate::*};
|
2022-02-18 11:21:10 +00:00
|
|
|
|
2023-01-03 18:58:25 +00:00
|
|
|
use crate::{RTSPContext, RTSPOnvifMediaFactory};
|
2022-02-18 11:21:10 +00:00
|
|
|
|
|
|
|
pub trait RTSPOnvifMediaFactoryExtManual: 'static {
|
|
|
|
#[doc(alias = "gst_rtsp_onvif_media_factory_requires_backchannel")]
|
|
|
|
fn requires_backchannel(&self, ctx: &RTSPContext) -> bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<O: IsA<RTSPOnvifMediaFactory>> RTSPOnvifMediaFactoryExtManual for O {
|
|
|
|
fn requires_backchannel(&self, ctx: &RTSPContext) -> bool {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
unsafe {
|
|
|
|
from_glib(ffi::gst_rtsp_onvif_media_factory_requires_backchannel(
|
|
|
|
self.as_ref()
|
|
|
|
.upcast_ref::<crate::RTSPMediaFactory>()
|
|
|
|
.to_glib_none()
|
|
|
|
.0,
|
|
|
|
ctx.to_glib_none().0,
|
|
|
|
))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|