Use glib::Class instead of glib::object::Class

This commit is contained in:
Sebastian Dröge 2020-11-05 18:48:17 +02:00 committed by Sebastian Dröge
parent 3bab13b228
commit 99fbbc32cb
27 changed files with 27 additions and 27 deletions

View file

@ -513,7 +513,7 @@ unsafe impl<T: AudioDecoderImpl> IsSubclassable<T> for AudioDecoder
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_audio_sys::GstAudioDecoderClass); let klass = &mut *(klass.as_mut() as *mut gst_audio_sys::GstAudioDecoderClass);

View file

@ -462,7 +462,7 @@ unsafe impl<T: AudioEncoderImpl> IsSubclassable<T> for AudioEncoder
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_audio_sys::GstAudioEncoderClass); let klass = &mut *(klass.as_mut() as *mut gst_audio_sys::GstAudioEncoderClass);

View file

@ -188,7 +188,7 @@ unsafe impl<T: AudioSinkImpl> IsSubclassable<T> for AudioSink
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <gst_base::BaseSink as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_audio_sys::GstAudioSinkClass); let klass = &mut *(klass.as_mut() as *mut gst_audio_sys::GstAudioSinkClass);

View file

@ -204,7 +204,7 @@ unsafe impl<T: AudioSrcImpl> IsSubclassable<T> for AudioSrc
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <gst_base::BaseSrc as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_audio_sys::GstAudioSrcClass); let klass = &mut *(klass.as_mut() as *mut gst_audio_sys::GstAudioSrcClass);

View file

@ -676,7 +676,7 @@ unsafe impl<T: AggregatorImpl> IsSubclassable<T> for Aggregator
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstAggregatorClass); let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstAggregatorClass);

View file

@ -100,7 +100,7 @@ impl<T: AggregatorPadImpl> AggregatorPadImplExt for T {
} }
} }
unsafe impl<T: AggregatorPadImpl> IsSubclassable<T> for AggregatorPad { 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); <gst::Pad as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstAggregatorPadClass); let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstAggregatorPadClass);

View file

@ -218,7 +218,7 @@ unsafe impl<T: BaseParseImpl> IsSubclassable<T> for BaseParse
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstBaseParseClass); let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstBaseParseClass);

View file

@ -384,7 +384,7 @@ unsafe impl<T: BaseSinkImpl> IsSubclassable<T> for BaseSink
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstBaseSinkClass); let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstBaseSinkClass);

View file

@ -573,7 +573,7 @@ unsafe impl<T: BaseSrcImpl> IsSubclassable<T> for BaseSrc
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstBaseSrcClass); let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstBaseSrcClass);

View file

@ -830,7 +830,7 @@ unsafe impl<T: BaseTransformImpl> IsSubclassable<T> for BaseTransform
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstBaseTransformClass); let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstBaseTransformClass);

View file

@ -117,7 +117,7 @@ unsafe impl<T: PushSrcImpl> IsSubclassable<T> for PushSrc
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <::BaseSrc as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstPushSrcClass); let klass = &mut *(klass.as_mut() as *mut gst_base_sys::GstPushSrcClass);

View file

@ -793,7 +793,7 @@ impl<T: RTSPClientImpl> RTSPClientImplExt for T {
} }
} }
unsafe impl<T: RTSPClientImpl> IsSubclassable<T> for RTSPClient { 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); <glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_rtsp_server_sys::GstRTSPClientClass); let klass = &mut *(klass.as_mut() as *mut gst_rtsp_server_sys::GstRTSPClientClass);

View file

@ -449,7 +449,7 @@ impl<T: RTSPMediaImpl> RTSPMediaImplExt for T {
} }
} }
unsafe impl<T: RTSPMediaImpl> IsSubclassable<T> for RTSPMedia { 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); <glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_rtsp_server_sys::GstRTSPMediaClass); let klass = &mut *(klass.as_mut() as *mut gst_rtsp_server_sys::GstRTSPMediaClass);

View file

@ -202,7 +202,7 @@ impl<T: RTSPMediaFactoryImpl> RTSPMediaFactoryImplExt for T {
} }
} }
unsafe impl<T: RTSPMediaFactoryImpl> IsSubclassable<T> for RTSPMediaFactory { 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); <glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = let klass =

View file

@ -54,7 +54,7 @@ impl<T: RTSPServerImpl> RTSPServerImplExt for T {
} }
} }
unsafe impl<T: RTSPServerImpl> IsSubclassable<T> for RTSPServer { 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); <glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_rtsp_server_sys::GstRTSPServerClass); let klass = &mut *(klass.as_mut() as *mut gst_rtsp_server_sys::GstRTSPServerClass);

View file

@ -502,7 +502,7 @@ unsafe impl<T: VideoDecoderImpl> IsSubclassable<T> for VideoDecoder
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_video_sys::GstVideoDecoderClass); let klass = &mut *(klass.as_mut() as *mut gst_video_sys::GstVideoDecoderClass);

View file

@ -438,7 +438,7 @@ unsafe impl<T: VideoEncoderImpl> IsSubclassable<T> for VideoEncoder
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <gst::Element as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_video_sys::GstVideoEncoderClass); let klass = &mut *(klass.as_mut() as *mut gst_video_sys::GstVideoEncoderClass);

View file

@ -61,7 +61,7 @@ unsafe impl<T: VideoSinkImpl> IsSubclassable<T> for VideoSink
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <gst_base::BaseSink as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_video_sys::GstVideoSinkClass); let klass = &mut *(klass.as_mut() as *mut gst_video_sys::GstVideoSinkClass);

View file

@ -90,7 +90,7 @@ unsafe impl<T: BinImpl> IsSubclassable<T> for Bin
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <::Element as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_sys::GstBinClass); let klass = &mut *(klass.as_mut() as *mut gst_sys::GstBinClass);

View file

@ -233,7 +233,7 @@ impl<T: ClockImpl> ClockImplExt for T {
} }
unsafe impl<T: ClockImpl> IsSubclassable<T> for Clock { 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); <glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {

View file

@ -99,7 +99,7 @@ impl<T: DeviceImpl> DeviceImplExt for T {
} }
unsafe impl<T: DeviceImpl> IsSubclassable<T> for Device { 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); <glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_sys::GstDeviceClass); let klass = &mut *(klass.as_mut() as *mut gst_sys::GstDeviceClass);

View file

@ -115,7 +115,7 @@ pub unsafe trait DeviceProviderClassSubclassExt: Sized + 'static {
unsafe impl DeviceProviderClassSubclassExt for DeviceProviderClass {} unsafe impl DeviceProviderClassSubclassExt for DeviceProviderClass {}
unsafe impl<T: DeviceProviderImpl> IsSubclassable<T> for DeviceProvider { 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); <glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let klass = &mut *(klass.as_mut() as *mut gst_sys::GstDeviceProviderClass); let klass = &mut *(klass.as_mut() as *mut gst_sys::GstDeviceProviderClass);

View file

@ -342,7 +342,7 @@ unsafe impl<T: ElementImpl> IsSubclassable<T> for Element
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {

View file

@ -16,7 +16,7 @@ use GhostPad;
pub trait GhostPadImpl: PadImpl {} pub trait GhostPadImpl: PadImpl {}
unsafe impl<T: GhostPadImpl> IsSubclassable<T> for GhostPad { 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); <::Pad as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let _klass = &mut *(klass.as_mut() as *mut gst_sys::GstGhostPadClass); let _klass = &mut *(klass.as_mut() as *mut gst_sys::GstGhostPadClass);

View file

@ -58,7 +58,7 @@ impl<T: PadImpl> PadImplExt for T {
} }
unsafe impl<T: PadImpl> IsSubclassable<T> for Pad { 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); <glib::Object as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {

View file

@ -19,7 +19,7 @@ unsafe impl<T: PipelineImpl> IsSubclassable<T> for Pipeline
where where
<T as ObjectSubclass>::Instance: PanicPoison, <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); <::Bin as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let _klass = &mut *(klass.as_mut() as *mut gst_sys::GstPipelineClass); let _klass = &mut *(klass.as_mut() as *mut gst_sys::GstPipelineClass);

View file

@ -16,7 +16,7 @@ use SystemClock;
pub trait SystemClockImpl: ClockImpl {} pub trait SystemClockImpl: ClockImpl {}
unsafe impl<T: SystemClockImpl> IsSubclassable<T> for SystemClock { 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); <::Clock as IsSubclassable<T>>::override_vfuncs(klass);
unsafe { unsafe {
let _klass = &mut *(klass.as_mut() as *mut gst_sys::GstSystemClockClass); let _klass = &mut *(klass.as_mut() as *mut gst_sys::GstSystemClockClass);