mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 09:31:06 +00:00
Use glib::Class instead of glib::object::Class
This commit is contained in:
parent
3bab13b228
commit
99fbbc32cb
27 changed files with 27 additions and 27 deletions
|
@ -513,7 +513,7 @@ unsafe impl<T: AudioDecoderImpl> IsSubclassable<T> for AudioDecoder
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_audio_sys::GstAudioDecoderClass);
|
||||
|
|
|
@ -462,7 +462,7 @@ unsafe impl<T: AudioEncoderImpl> IsSubclassable<T> for AudioEncoder
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_audio_sys::GstAudioEncoderClass);
|
||||
|
|
|
@ -188,7 +188,7 @@ unsafe impl<T: AudioSinkImpl> IsSubclassable<T> for AudioSink
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<gst_base::BaseSink as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_audio_sys::GstAudioSinkClass);
|
||||
|
|
|
@ -204,7 +204,7 @@ unsafe impl<T: AudioSrcImpl> IsSubclassable<T> for AudioSrc
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<gst_base::BaseSrc as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_audio_sys::GstAudioSrcClass);
|
||||
|
|
|
@ -676,7 +676,7 @@ unsafe impl<T: AggregatorImpl> IsSubclassable<T> for Aggregator
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstAggregatorClass);
|
||||
|
|
|
@ -100,7 +100,7 @@ impl<T: AggregatorPadImpl> AggregatorPadImplExt for T {
|
|||
}
|
||||
}
|
||||
unsafe impl<T: AggregatorPadImpl> IsSubclassable<T> for AggregatorPad {
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<gst::Pad as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstAggregatorPadClass);
|
||||
|
|
|
@ -218,7 +218,7 @@ unsafe impl<T: BaseParseImpl> IsSubclassable<T> for BaseParse
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstBaseParseClass);
|
||||
|
|
|
@ -384,7 +384,7 @@ unsafe impl<T: BaseSinkImpl> IsSubclassable<T> for BaseSink
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstBaseSinkClass);
|
||||
|
|
|
@ -573,7 +573,7 @@ unsafe impl<T: BaseSrcImpl> IsSubclassable<T> for BaseSrc
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstBaseSrcClass);
|
||||
|
|
|
@ -830,7 +830,7 @@ unsafe impl<T: BaseTransformImpl> IsSubclassable<T> for BaseTransform
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstBaseTransformClass);
|
||||
|
|
|
@ -117,7 +117,7 @@ unsafe impl<T: PushSrcImpl> IsSubclassable<T> for PushSrc
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<::BaseSrc as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstPushSrcClass);
|
||||
|
|
|
@ -793,7 +793,7 @@ impl<T: RTSPClientImpl> RTSPClientImplExt for T {
|
|||
}
|
||||
}
|
||||
unsafe impl<T: RTSPClientImpl> IsSubclassable<T> for RTSPClient {
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_rtsp_server_sys::GstRTSPClientClass);
|
||||
|
|
|
@ -449,7 +449,7 @@ impl<T: RTSPMediaImpl> RTSPMediaImplExt for T {
|
|||
}
|
||||
}
|
||||
unsafe impl<T: RTSPMediaImpl> IsSubclassable<T> for RTSPMedia {
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_rtsp_server_sys::GstRTSPMediaClass);
|
||||
|
|
|
@ -202,7 +202,7 @@ impl<T: RTSPMediaFactoryImpl> RTSPMediaFactoryImplExt for T {
|
|||
}
|
||||
}
|
||||
unsafe impl<T: RTSPMediaFactoryImpl> IsSubclassable<T> for RTSPMediaFactory {
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass =
|
||||
|
|
|
@ -54,7 +54,7 @@ impl<T: RTSPServerImpl> RTSPServerImplExt for T {
|
|||
}
|
||||
}
|
||||
unsafe impl<T: RTSPServerImpl> IsSubclassable<T> for RTSPServer {
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_rtsp_server_sys::GstRTSPServerClass);
|
||||
|
|
|
@ -502,7 +502,7 @@ unsafe impl<T: VideoDecoderImpl> IsSubclassable<T> for VideoDecoder
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_video_sys::GstVideoDecoderClass);
|
||||
|
|
|
@ -438,7 +438,7 @@ unsafe impl<T: VideoEncoderImpl> IsSubclassable<T> for VideoEncoder
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_video_sys::GstVideoEncoderClass);
|
||||
|
|
|
@ -61,7 +61,7 @@ unsafe impl<T: VideoSinkImpl> IsSubclassable<T> for VideoSink
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<gst_base::BaseSink as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_video_sys::GstVideoSinkClass);
|
||||
|
|
|
@ -90,7 +90,7 @@ unsafe impl<T: BinImpl> IsSubclassable<T> for Bin
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<::Element as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_sys::GstBinClass);
|
||||
|
|
|
@ -233,7 +233,7 @@ impl<T: ClockImpl> ClockImplExt for T {
|
|||
}
|
||||
|
||||
unsafe impl<T: ClockImpl> IsSubclassable<T> for Clock {
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
|
||||
unsafe {
|
||||
|
|
|
@ -99,7 +99,7 @@ impl<T: DeviceImpl> DeviceImplExt for T {
|
|||
}
|
||||
|
||||
unsafe impl<T: DeviceImpl> IsSubclassable<T> for Device {
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_sys::GstDeviceClass);
|
||||
|
|
|
@ -115,7 +115,7 @@ pub unsafe trait DeviceProviderClassSubclassExt: Sized + 'static {
|
|||
unsafe impl DeviceProviderClassSubclassExt for DeviceProviderClass {}
|
||||
|
||||
unsafe impl<T: DeviceProviderImpl> IsSubclassable<T> for DeviceProvider {
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let klass = &mut *(klass.as_mut() as *mut gst_sys::GstDeviceProviderClass);
|
||||
|
|
|
@ -342,7 +342,7 @@ unsafe impl<T: ElementImpl> IsSubclassable<T> for Element
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
|
||||
unsafe {
|
||||
|
|
|
@ -16,7 +16,7 @@ use GhostPad;
|
|||
pub trait GhostPadImpl: PadImpl {}
|
||||
|
||||
unsafe impl<T: GhostPadImpl> IsSubclassable<T> for GhostPad {
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<::Pad as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let _klass = &mut *(klass.as_mut() as *mut gst_sys::GstGhostPadClass);
|
||||
|
|
|
@ -58,7 +58,7 @@ impl<T: PadImpl> PadImplExt for T {
|
|||
}
|
||||
|
||||
unsafe impl<T: PadImpl> IsSubclassable<T> for Pad {
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
|
||||
unsafe {
|
||||
|
|
|
@ -19,7 +19,7 @@ unsafe impl<T: PipelineImpl> IsSubclassable<T> for Pipeline
|
|||
where
|
||||
<T as ObjectSubclass>::Instance: PanicPoison,
|
||||
{
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<::Bin as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let _klass = &mut *(klass.as_mut() as *mut gst_sys::GstPipelineClass);
|
||||
|
|
|
@ -16,7 +16,7 @@ use SystemClock;
|
|||
pub trait SystemClockImpl: ClockImpl {}
|
||||
|
||||
unsafe impl<T: SystemClockImpl> IsSubclassable<T> for SystemClock {
|
||||
fn override_vfuncs(klass: &mut glib::object::Class<Self>) {
|
||||
fn override_vfuncs(klass: &mut glib::Class<Self>) {
|
||||
<::Clock as IsSubclassable<T>>::override_vfuncs(klass);
|
||||
unsafe {
|
||||
let _klass = &mut *(klass.as_mut() as *mut gst_sys::GstSystemClockClass);
|
||||
|
|
Loading…
Reference in a new issue