diff --git a/audio/audiofx/src/audioecho/imp.rs b/audio/audiofx/src/audioecho/imp.rs index 106316f0..5f873ec9 100644 --- a/audio/audiofx/src/audioecho/imp.rs +++ b/audio/audiofx/src/audioecho/imp.rs @@ -90,7 +90,6 @@ impl ObjectSubclass for AudioEcho { const NAME: &'static str = "RsAudioEcho"; type Type = super::AudioEcho; type ParentType = gst_base::BaseTransform; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for AudioEcho { diff --git a/audio/audiofx/src/audioloudnorm/imp.rs b/audio/audiofx/src/audioloudnorm/imp.rs index 543ec70a..8be6ad4f 100644 --- a/audio/audiofx/src/audioloudnorm/imp.rs +++ b/audio/audiofx/src/audioloudnorm/imp.rs @@ -1705,7 +1705,6 @@ impl ObjectSubclass for AudioLoudNorm { const NAME: &'static str = "RsAudioLoudNorm"; type Type = super::AudioLoudNorm; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/audio/audiofx/src/audiornnoise/imp.rs b/audio/audiofx/src/audiornnoise/imp.rs index 8e11d303..4db4980d 100644 --- a/audio/audiofx/src/audiornnoise/imp.rs +++ b/audio/audiofx/src/audiornnoise/imp.rs @@ -194,7 +194,6 @@ impl ObjectSubclass for AudioRNNoise { const NAME: &'static str = "AudioRNNoise"; type Type = super::AudioRNNoise; type ParentType = gst_base::BaseTransform; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for AudioRNNoise {} diff --git a/audio/claxon/src/claxondec/imp.rs b/audio/claxon/src/claxondec/imp.rs index b880ca92..9a0da76d 100644 --- a/audio/claxon/src/claxondec/imp.rs +++ b/audio/claxon/src/claxondec/imp.rs @@ -43,7 +43,6 @@ impl ObjectSubclass for ClaxonDec { const NAME: &'static str = "ClaxonDec"; type Type = super::ClaxonDec; type ParentType = gst_audio::AudioDecoder; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for ClaxonDec {} diff --git a/audio/csound/src/filter/imp.rs b/audio/csound/src/filter/imp.rs index dcc0ea57..c50329fd 100644 --- a/audio/csound/src/filter/imp.rs +++ b/audio/csound/src/filter/imp.rs @@ -318,7 +318,6 @@ impl ObjectSubclass for CsoundFilter { const NAME: &'static str = "CsoundFilter"; type Type = super::CsoundFilter; type ParentType = gst_base::BaseTransform; - type Instance = gst::subclass::ElementInstanceStruct; fn new() -> Self { let csound = Csound::new(); diff --git a/audio/lewton/src/lewtondec/imp.rs b/audio/lewton/src/lewtondec/imp.rs index d5a09584..fa1d0235 100644 --- a/audio/lewton/src/lewtondec/imp.rs +++ b/audio/lewton/src/lewtondec/imp.rs @@ -49,7 +49,6 @@ impl ObjectSubclass for LewtonDec { const NAME: &'static str = "LewtonDec"; type Type = super::LewtonDec; type ParentType = gst_audio::AudioDecoder; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for LewtonDec {} diff --git a/generic/file/src/filesink/imp.rs b/generic/file/src/filesink/imp.rs index 87eff33c..05253cf9 100644 --- a/generic/file/src/filesink/imp.rs +++ b/generic/file/src/filesink/imp.rs @@ -112,7 +112,6 @@ impl ObjectSubclass for FileSink { type Type = super::FileSink; type ParentType = gst_base::BaseSink; type Interfaces = (gst::URIHandler,); - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for FileSink { diff --git a/generic/file/src/filesrc/imp.rs b/generic/file/src/filesrc/imp.rs index 1abdd88e..4a7e1172 100644 --- a/generic/file/src/filesrc/imp.rs +++ b/generic/file/src/filesrc/imp.rs @@ -126,7 +126,6 @@ impl ObjectSubclass for FileSrc { type Type = super::FileSrc; type ParentType = gst_base::BaseSrc; type Interfaces = (gst::URIHandler,); - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for FileSrc { diff --git a/generic/sodium/src/decrypter/imp.rs b/generic/sodium/src/decrypter/imp.rs index adc9896d..c5c5bda7 100644 --- a/generic/sodium/src/decrypter/imp.rs +++ b/generic/sodium/src/decrypter/imp.rs @@ -549,7 +549,6 @@ impl ObjectSubclass for Decrypter { const NAME: &'static str = "RsSodiumDecryptor"; type Type = super::Decrypter; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/generic/sodium/src/encrypter/imp.rs b/generic/sodium/src/encrypter/imp.rs index a2c7a9df..a53f6fc7 100644 --- a/generic/sodium/src/encrypter/imp.rs +++ b/generic/sodium/src/encrypter/imp.rs @@ -339,7 +339,6 @@ impl ObjectSubclass for Encrypter { const NAME: &'static str = "RsSodiumEncrypter"; type Type = super::Encrypter; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/generic/threadshare/src/appsrc/imp.rs b/generic/threadshare/src/appsrc/imp.rs index c44c659d..ba459659 100644 --- a/generic/threadshare/src/appsrc/imp.rs +++ b/generic/threadshare/src/appsrc/imp.rs @@ -508,7 +508,6 @@ impl ObjectSubclass for AppSrc { const NAME: &'static str = "RsTsAppSrc"; type Type = super::AppSrc; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let src_pad_handler = AppSrcPadHandler::default(); diff --git a/generic/threadshare/src/inputselector/imp.rs b/generic/threadshare/src/inputselector/imp.rs index c625886c..c3016a5c 100644 --- a/generic/threadshare/src/inputselector/imp.rs +++ b/generic/threadshare/src/inputselector/imp.rs @@ -395,7 +395,6 @@ impl ObjectSubclass for InputSelector { const NAME: &'static str = "RsTsInputSelector"; type Type = super::InputSelector; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { Self { diff --git a/generic/threadshare/src/jitterbuffer/imp.rs b/generic/threadshare/src/jitterbuffer/imp.rs index 1c679ea6..c3e3eda8 100644 --- a/generic/threadshare/src/jitterbuffer/imp.rs +++ b/generic/threadshare/src/jitterbuffer/imp.rs @@ -1339,7 +1339,6 @@ impl ObjectSubclass for JitterBuffer { const NAME: &'static str = "RsTsJitterBuffer"; type Type = super::JitterBuffer; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let sink_pad_handler = SinkHandler::default(); diff --git a/generic/threadshare/src/proxy/imp.rs b/generic/threadshare/src/proxy/imp.rs index 15e5e1ba..2eeb7326 100644 --- a/generic/threadshare/src/proxy/imp.rs +++ b/generic/threadshare/src/proxy/imp.rs @@ -576,7 +576,6 @@ impl ObjectSubclass for ProxySink { const NAME: &'static str = "RsTsProxySink"; type Type = super::ProxySink; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { Self { @@ -1114,7 +1113,6 @@ impl ObjectSubclass for ProxySrc { const NAME: &'static str = "RsTsProxySrc"; type Type = super::ProxySrc; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { Self { diff --git a/generic/threadshare/src/queue/imp.rs b/generic/threadshare/src/queue/imp.rs index 3426b3c6..ba3c0ae2 100644 --- a/generic/threadshare/src/queue/imp.rs +++ b/generic/threadshare/src/queue/imp.rs @@ -696,7 +696,6 @@ impl ObjectSubclass for Queue { const NAME: &'static str = "RsTsQueue"; type Type = super::Queue; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { Self { diff --git a/generic/threadshare/src/tcpclientsrc/imp.rs b/generic/threadshare/src/tcpclientsrc/imp.rs index 331dbaa7..b0d4999d 100644 --- a/generic/threadshare/src/tcpclientsrc/imp.rs +++ b/generic/threadshare/src/tcpclientsrc/imp.rs @@ -549,7 +549,6 @@ impl ObjectSubclass for TcpClientSrc { const NAME: &'static str = "RsTsTcpClientSrc"; type Type = super::TcpClientSrc; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let src_pad_handler = TcpClientSrcPadHandler::default(); diff --git a/generic/threadshare/src/udpsink/imp.rs b/generic/threadshare/src/udpsink/imp.rs index 477f27b8..12caf91e 100644 --- a/generic/threadshare/src/udpsink/imp.rs +++ b/generic/threadshare/src/udpsink/imp.rs @@ -948,7 +948,6 @@ impl ObjectSubclass for UdpSink { const NAME: &'static str = "RsTsUdpSink"; type Type = super::UdpSink; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let settings = Arc::new(StdMutex::new(Settings::default())); diff --git a/generic/threadshare/src/udpsrc/imp.rs b/generic/threadshare/src/udpsrc/imp.rs index 07e9d136..442a00fc 100644 --- a/generic/threadshare/src/udpsrc/imp.rs +++ b/generic/threadshare/src/udpsrc/imp.rs @@ -690,7 +690,6 @@ impl ObjectSubclass for UdpSrc { const NAME: &'static str = "RsTsUdpSrc"; type Type = super::UdpSrc; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let src_pad_handler = UdpSrcPadHandler::default(); diff --git a/generic/threadshare/tests/pad.rs b/generic/threadshare/tests/pad.rs index 65f27957..f4b949bb 100644 --- a/generic/threadshare/tests/pad.rs +++ b/generic/threadshare/tests/pad.rs @@ -306,7 +306,6 @@ mod imp_src { const NAME: &'static str = "TsElementSrcTest"; type Type = super::ElementSrcTest; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { ElementSrcTest { @@ -638,7 +637,6 @@ mod imp_sink { const NAME: &'static str = "TsElementSinkTest"; type Type = super::ElementSinkTest; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { ElementSinkTest { diff --git a/net/reqwest/src/reqwesthttpsrc/imp.rs b/net/reqwest/src/reqwesthttpsrc/imp.rs index 5767538d..7552a9d2 100644 --- a/net/reqwest/src/reqwesthttpsrc/imp.rs +++ b/net/reqwest/src/reqwesthttpsrc/imp.rs @@ -1117,5 +1117,4 @@ impl ObjectSubclass for ReqwestHttpSrc { type Type = super::ReqwestHttpSrc; type ParentType = gst_base::PushSrc; type Interfaces = (gst::URIHandler,); - type Instance = gst::subclass::ElementInstanceStruct; } diff --git a/net/rusoto/src/aws_transcriber/imp.rs b/net/rusoto/src/aws_transcriber/imp.rs index 01715146..9e19d960 100644 --- a/net/rusoto/src/aws_transcriber/imp.rs +++ b/net/rusoto/src/aws_transcriber/imp.rs @@ -969,7 +969,6 @@ impl ObjectSubclass for Transcriber { const NAME: &'static str = "RsAwsTranscriber"; type Type = super::Transcriber; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/net/rusoto/src/s3sink/imp.rs b/net/rusoto/src/s3sink/imp.rs index 3a30bdd6..b738e116 100644 --- a/net/rusoto/src/s3sink/imp.rs +++ b/net/rusoto/src/s3sink/imp.rs @@ -346,7 +346,6 @@ impl ObjectSubclass for S3Sink { const NAME: &'static str = "RusotoS3Sink"; type Type = super::S3Sink; type ParentType = gst_base::BaseSink; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for S3Sink { diff --git a/net/rusoto/src/s3src/imp.rs b/net/rusoto/src/s3src/imp.rs index 156e6b6d..ed132784 100644 --- a/net/rusoto/src/s3src/imp.rs +++ b/net/rusoto/src/s3src/imp.rs @@ -208,7 +208,6 @@ impl ObjectSubclass for S3Src { type Type = super::S3Src; type ParentType = gst_base::BaseSrc; type Interfaces = (gst::URIHandler,); - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for S3Src { diff --git a/text/json/src/jsongstenc/imp.rs b/text/json/src/jsongstenc/imp.rs index b8be23d6..4e095fd8 100644 --- a/text/json/src/jsongstenc/imp.rs +++ b/text/json/src/jsongstenc/imp.rs @@ -205,7 +205,6 @@ impl ObjectSubclass for JsonGstEnc { const NAME: &'static str = "RsJsonGstEnc"; type Type = super::JsonGstEnc; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/text/json/src/jsongstparse/imp.rs b/text/json/src/jsongstparse/imp.rs index 4db24cf6..48a733fe 100644 --- a/text/json/src/jsongstparse/imp.rs +++ b/text/json/src/jsongstparse/imp.rs @@ -867,7 +867,6 @@ impl ObjectSubclass for JsonGstParse { const NAME: &'static str = "RsJsonGstParse"; type Type = super::JsonGstParse; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/text/regex/src/gstregex/imp.rs b/text/regex/src/gstregex/imp.rs index 56ef21e5..34c38a9a 100644 --- a/text/regex/src/gstregex/imp.rs +++ b/text/regex/src/gstregex/imp.rs @@ -123,7 +123,6 @@ impl ObjectSubclass for RegEx { const NAME: &'static str = "RsRegEx"; type Type = super::RegEx; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/text/wrap/src/gsttextwrap/imp.rs b/text/wrap/src/gsttextwrap/imp.rs index de4a2d6d..7a906a03 100644 --- a/text/wrap/src/gsttextwrap/imp.rs +++ b/text/wrap/src/gsttextwrap/imp.rs @@ -426,7 +426,6 @@ impl ObjectSubclass for TextWrap { const NAME: &'static str = "RsTextWrap"; type Type = super::TextWrap; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/tutorial/src/identity/imp.rs b/tutorial/src/identity/imp.rs index cddb491a..2d58f9a5 100644 --- a/tutorial/src/identity/imp.rs +++ b/tutorial/src/identity/imp.rs @@ -118,7 +118,6 @@ impl ObjectSubclass for Identity { const NAME: &'static str = "RsIdentity"; type Type = super::Identity; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; // Called when a new instance is to be created. We need to return an instance // of our struct here and also get the class struct passed in case it's needed diff --git a/tutorial/src/progressbin/imp.rs b/tutorial/src/progressbin/imp.rs index 9499147b..428d1424 100644 --- a/tutorial/src/progressbin/imp.rs +++ b/tutorial/src/progressbin/imp.rs @@ -48,7 +48,6 @@ impl ObjectSubclass for ProgressBin { const NAME: &'static str = "RsProgressBin"; type Type = super::ProgressBin; type ParentType = gst::Bin; - type Instance = gst::subclass::ElementInstanceStruct; // Called when a new instance is to be created. We need to return an instance // of our struct here and also get the class struct passed in case it's needed diff --git a/tutorial/src/rgb2gray/imp.rs b/tutorial/src/rgb2gray/imp.rs index db4ac16d..ea5b58a3 100644 --- a/tutorial/src/rgb2gray/imp.rs +++ b/tutorial/src/rgb2gray/imp.rs @@ -95,7 +95,6 @@ impl ObjectSubclass for Rgb2Gray { const NAME: &'static str = "RsRgb2Gray"; type Type = super::Rgb2Gray; type ParentType = gst_base::BaseTransform; - type Instance = gst::subclass::ElementInstanceStruct; } // Implementation of glib::Object virtual methods diff --git a/tutorial/src/sinesrc/imp.rs b/tutorial/src/sinesrc/imp.rs index 90bb1812..ceb73e27 100644 --- a/tutorial/src/sinesrc/imp.rs +++ b/tutorial/src/sinesrc/imp.rs @@ -158,7 +158,6 @@ impl ObjectSubclass for SineSrc { const NAME: &'static str = "RsSineSrc"; type Type = super::SineSrc; type ParentType = gst_base::PushSrc; - type Instance = gst::subclass::ElementInstanceStruct; } // Implementation of glib::Object virtual methods diff --git a/tutorial/tutorial-1.md b/tutorial/tutorial-1.md index 7c5127fb..68d95ec1 100644 --- a/tutorial/tutorial-1.md +++ b/tutorial/tutorial-1.md @@ -173,7 +173,6 @@ impl ObjectSubclass for Rgb2Gray { const NAME: &'static str = "RsRgb2Gray"; type Type = super::Rgb2Gray; type ParentType = gst_base::BaseTransform; - type Instance = gst::subclass::ElementInstanceStruct; } ``` @@ -277,7 +276,6 @@ impl ObjectSubclass for Rgb2Gray { const NAME: &'static str = "RsRgb2Gray"; type Type = super::Rgb2Gray; type ParentType = gst_base::BaseTransform; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for Rgb2Gray {} diff --git a/tutorial/tutorial-2.md b/tutorial/tutorial-2.md index c735a92b..dfa0e56b 100644 --- a/tutorial/tutorial-2.md +++ b/tutorial/tutorial-2.md @@ -110,7 +110,6 @@ impl ObjectSubclass for SineSrc { const NAME: &'static str = "RsSineSrc"; type Type = super::SineSrc; type ParentType = gst_base::PushSrc; - type Instance = gst::subclass::ElementInstanceStruct; // Called exactly once when registering the type. Used for // setting up metadata for all instances, e.g. the name and diff --git a/utils/fallbackswitch/src/base/subclass/aggregator.rs b/utils/fallbackswitch/src/base/subclass/aggregator.rs index 4fb401cb..25623d11 100644 --- a/utils/fallbackswitch/src/base/subclass/aggregator.rs +++ b/utils/fallbackswitch/src/base/subclass/aggregator.rs @@ -614,10 +614,7 @@ impl AggregatorImplExt for T { } } -unsafe impl IsSubclassable for Aggregator -where - ::Instance: PanicPoison, -{ +unsafe impl IsSubclassable for Aggregator { fn class_init(klass: &mut glib::Class) { >::class_init(klass); let klass = klass.as_mut(); @@ -643,19 +640,20 @@ where klass.negotiate = Some(aggregator_negotiate::); } } + + fn instance_init(instance: &mut glib::subclass::InitializingObject) { + >::instance_init(instance); + } } unsafe extern "C" fn aggregator_flush( ptr: *mut ffi::GstAggregator, -) -> gst::ffi::GstFlowReturn -where - T::Instance: PanicPoison, -{ +) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), gst::FlowReturn::Error, { + gst::panic_to_error!(&wrap, &imp.panicked(), gst::FlowReturn::Error, { imp.flush(wrap.unsafe_cast_ref()).into() }) .to_glib() @@ -665,15 +663,12 @@ unsafe extern "C" fn aggregator_clip( ptr: *mut ffi::GstAggregator, aggregator_pad: *mut ffi::GstAggregatorPad, buffer: *mut gst::ffi::GstBuffer, -) -> *mut gst::ffi::GstBuffer -where - T::Instance: PanicPoison, -{ +) -> *mut gst::ffi::GstBuffer { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - let ret = gst::panic_to_error!(&wrap, &instance.panicked(), None, { + let ret = gst::panic_to_error!(&wrap, &imp.panicked(), None, { imp.clip( wrap.unsafe_cast_ref(), &from_glib_borrow(aggregator_pad), @@ -687,15 +682,12 @@ where unsafe extern "C" fn aggregator_finish_buffer( ptr: *mut ffi::GstAggregator, buffer: *mut gst::ffi::GstBuffer, -) -> gst::ffi::GstFlowReturn -where - T::Instance: PanicPoison, -{ +) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), gst::FlowReturn::Error, { + gst::panic_to_error!(&wrap, &imp.panicked(), gst::FlowReturn::Error, { imp.finish_buffer(wrap.unsafe_cast_ref(), from_glib_full(buffer)) .into() }) @@ -706,15 +698,12 @@ unsafe extern "C" fn aggregator_sink_event( ptr: *mut ffi::GstAggregator, aggregator_pad: *mut ffi::GstAggregatorPad, event: *mut gst::ffi::GstEvent, -) -> glib::ffi::gboolean -where - T::Instance: PanicPoison, -{ +) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(wrap, &instance.panicked(), false, { + gst::panic_to_error!(wrap, &imp.panicked(), false, { imp.sink_event( wrap.unsafe_cast_ref(), &from_glib_borrow(aggregator_pad), @@ -728,15 +717,12 @@ unsafe extern "C" fn aggregator_sink_event_pre_queue( ptr: *mut ffi::GstAggregator, aggregator_pad: *mut ffi::GstAggregatorPad, event: *mut gst::ffi::GstEvent, -) -> gst::ffi::GstFlowReturn -where - T::Instance: PanicPoison, -{ +) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), gst::FlowReturn::Error, { + gst::panic_to_error!(&wrap, &imp.panicked(), gst::FlowReturn::Error, { imp.sink_event_pre_queue( wrap.unsafe_cast_ref(), &from_glib_borrow(aggregator_pad), @@ -751,15 +737,12 @@ unsafe extern "C" fn aggregator_sink_query( ptr: *mut ffi::GstAggregator, aggregator_pad: *mut ffi::GstAggregatorPad, query: *mut gst::ffi::GstQuery, -) -> glib::ffi::gboolean -where - T::Instance: PanicPoison, -{ +) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), false, { + gst::panic_to_error!(&wrap, &imp.panicked(), false, { imp.sink_query( wrap.unsafe_cast_ref(), &from_glib_borrow(aggregator_pad), @@ -773,15 +756,12 @@ unsafe extern "C" fn aggregator_sink_query_pre_queue( ptr: *mut ffi::GstAggregator, aggregator_pad: *mut ffi::GstAggregatorPad, query: *mut gst::ffi::GstQuery, -) -> glib::ffi::gboolean -where - T::Instance: PanicPoison, -{ +) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), false, { + gst::panic_to_error!(&wrap, &imp.panicked(), false, { imp.sink_query_pre_queue( wrap.unsafe_cast_ref(), &from_glib_borrow(aggregator_pad), @@ -794,15 +774,12 @@ where unsafe extern "C" fn aggregator_src_event( ptr: *mut ffi::GstAggregator, event: *mut gst::ffi::GstEvent, -) -> glib::ffi::gboolean -where - T::Instance: PanicPoison, -{ +) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), false, { + gst::panic_to_error!(&wrap, &imp.panicked(), false, { imp.src_event(wrap.unsafe_cast_ref(), from_glib_full(event)) }) .to_glib() @@ -811,15 +788,12 @@ where unsafe extern "C" fn aggregator_src_query( ptr: *mut ffi::GstAggregator, query: *mut gst::ffi::GstQuery, -) -> glib::ffi::gboolean -where - T::Instance: PanicPoison, -{ +) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), false, { + gst::panic_to_error!(&wrap, &imp.panicked(), false, { imp.src_query(wrap.unsafe_cast_ref(), gst::QueryRef::from_mut_ptr(query)) }) .to_glib() @@ -829,15 +803,12 @@ unsafe extern "C" fn aggregator_src_activate( ptr: *mut ffi::GstAggregator, mode: gst::ffi::GstPadMode, active: glib::ffi::gboolean, -) -> glib::ffi::gboolean -where - T::Instance: PanicPoison, -{ +) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), false, { + gst::panic_to_error!(&wrap, &imp.panicked(), false, { match imp.src_activate(wrap.unsafe_cast_ref(), from_glib(mode), from_glib(active)) { Ok(()) => true, Err(err) => { @@ -852,15 +823,12 @@ where unsafe extern "C" fn aggregator_aggregate( ptr: *mut ffi::GstAggregator, timeout: glib::ffi::gboolean, -) -> gst::ffi::GstFlowReturn -where - T::Instance: PanicPoison, -{ +) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), gst::FlowReturn::Error, { + gst::panic_to_error!(&wrap, &imp.panicked(), gst::FlowReturn::Error, { imp.aggregate(wrap.unsafe_cast_ref(), from_glib(timeout)) .into() }) @@ -869,15 +837,12 @@ where unsafe extern "C" fn aggregator_start( ptr: *mut ffi::GstAggregator, -) -> glib::ffi::gboolean -where - T::Instance: PanicPoison, -{ +) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), false, { + gst::panic_to_error!(&wrap, &imp.panicked(), false, { match imp.start(wrap.unsafe_cast_ref()) { Ok(()) => true, Err(err) => { @@ -891,15 +856,12 @@ where unsafe extern "C" fn aggregator_stop( ptr: *mut ffi::GstAggregator, -) -> glib::ffi::gboolean -where - T::Instance: PanicPoison, -{ +) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), false, { + gst::panic_to_error!(&wrap, &imp.panicked(), false, { match imp.stop(wrap.unsafe_cast_ref()) { Ok(()) => true, Err(err) => { @@ -913,15 +875,12 @@ where unsafe extern "C" fn aggregator_get_next_time( ptr: *mut ffi::GstAggregator, -) -> gst::ffi::GstClockTime -where - T::Instance: PanicPoison, -{ +) -> gst::ffi::GstClockTime { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), gst::CLOCK_TIME_NONE, { + gst::panic_to_error!(&wrap, &imp.panicked(), gst::CLOCK_TIME_NONE, { imp.get_next_time(wrap.unsafe_cast_ref()) }) .to_glib() @@ -932,15 +891,12 @@ unsafe extern "C" fn aggregator_create_new_pad( templ: *mut gst::ffi::GstPadTemplate, req_name: *const libc::c_char, caps: *const gst::ffi::GstCaps, -) -> *mut ffi::GstAggregatorPad -where - T::Instance: PanicPoison, -{ +) -> *mut ffi::GstAggregatorPad { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), None, { + gst::panic_to_error!(&wrap, &imp.panicked(), None, { let req_name: Borrowed> = from_glib_borrow(req_name); imp.create_new_pad( @@ -959,17 +915,14 @@ unsafe extern "C" fn aggregator_update_src_caps( ptr: *mut ffi::GstAggregator, caps: *mut gst::ffi::GstCaps, res: *mut *mut gst::ffi::GstCaps, -) -> gst::ffi::GstFlowReturn -where - T::Instance: PanicPoison, -{ +) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); *res = ptr::null_mut(); - gst::panic_to_error!(&wrap, &instance.panicked(), gst::FlowReturn::Error, { + gst::panic_to_error!(&wrap, &imp.panicked(), gst::FlowReturn::Error, { match imp.update_src_caps(wrap.unsafe_cast_ref(), &from_glib_borrow(caps)) { Ok(res_caps) => { *res = res_caps.into_ptr(); @@ -984,15 +937,12 @@ where unsafe extern "C" fn aggregator_fixate_src_caps( ptr: *mut ffi::GstAggregator, caps: *mut gst::ffi::GstCaps, -) -> *mut gst::ffi::GstCaps -where - T::Instance: PanicPoison, -{ +) -> *mut gst::ffi::GstCaps { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), gst::Caps::new_empty(), { + gst::panic_to_error!(&wrap, &imp.panicked(), gst::Caps::new_empty(), { imp.fixate_src_caps(wrap.unsafe_cast_ref(), from_glib_full(caps)) }) .into_ptr() @@ -1001,15 +951,12 @@ where unsafe extern "C" fn aggregator_negotiated_src_caps( ptr: *mut ffi::GstAggregator, caps: *mut gst::ffi::GstCaps, -) -> glib::ffi::gboolean -where - T::Instance: PanicPoison, -{ +) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), false, { + gst::panic_to_error!(&wrap, &imp.panicked(), false, { match imp.negotiated_src_caps(wrap.unsafe_cast_ref(), &from_glib_borrow(caps)) { Ok(()) => true, Err(err) => { @@ -1023,15 +970,12 @@ where unsafe extern "C" fn aggregator_negotiate( ptr: *mut ffi::GstAggregator, -) -> glib::ffi::gboolean -where - T::Instance: PanicPoison, -{ +) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); let imp = instance.get_impl(); let wrap: Borrowed = from_glib_borrow(ptr); - gst::panic_to_error!(&wrap, &instance.panicked(), false, { + gst::panic_to_error!(&wrap, &imp.panicked(), false, { imp.negotiate(wrap.unsafe_cast_ref()) }) .to_glib() diff --git a/utils/fallbackswitch/src/base/subclass/aggregator_pad.rs b/utils/fallbackswitch/src/base/subclass/aggregator_pad.rs index 2317df70..68a706f4 100644 --- a/utils/fallbackswitch/src/base/subclass/aggregator_pad.rs +++ b/utils/fallbackswitch/src/base/subclass/aggregator_pad.rs @@ -108,6 +108,10 @@ unsafe impl IsSubclassable for AggregatorPad { klass.flush = Some(aggregator_pad_flush::); klass.skip_buffer = Some(aggregator_pad_skip_buffer::); } + + fn instance_init(instance: &mut glib::subclass::InitializingObject) { + >::instance_init(instance); + } } unsafe extern "C" fn aggregator_pad_flush( diff --git a/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs b/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs index ce7059e3..f634553f 100644 --- a/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs +++ b/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs @@ -59,7 +59,6 @@ impl ObjectSubclass for CustomSource { const NAME: &'static str = "FallbackSrcCustomSource"; type Type = super::CustomSource; type ParentType = gst::Bin; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for CustomSource { diff --git a/utils/fallbackswitch/src/fallbacksrc/imp.rs b/utils/fallbackswitch/src/fallbacksrc/imp.rs index 7c2e4f31..d85cef12 100644 --- a/utils/fallbackswitch/src/fallbacksrc/imp.rs +++ b/utils/fallbackswitch/src/fallbacksrc/imp.rs @@ -182,7 +182,6 @@ impl ObjectSubclass for FallbackSrc { const NAME: &'static str = "FallbackSrc"; type Type = super::FallbackSrc; type ParentType = gst::Bin; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for FallbackSrc { diff --git a/utils/fallbackswitch/src/fallbacksrc/video_fallback/imp.rs b/utils/fallbackswitch/src/fallbacksrc/video_fallback/imp.rs index fed4ebd3..80001850 100644 --- a/utils/fallbackswitch/src/fallbacksrc/video_fallback/imp.rs +++ b/utils/fallbackswitch/src/fallbacksrc/video_fallback/imp.rs @@ -66,7 +66,6 @@ impl ObjectSubclass for VideoFallbackSource { const NAME: &'static str = "FallbackSrcVideoFallbackSource"; type Type = super::VideoFallbackSource; type ParentType = gst::Bin; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("src").unwrap(); diff --git a/utils/fallbackswitch/src/fallbackswitch/imp.rs b/utils/fallbackswitch/src/fallbackswitch/imp.rs index e498d0b9..0b191a25 100644 --- a/utils/fallbackswitch/src/fallbackswitch/imp.rs +++ b/utils/fallbackswitch/src/fallbackswitch/imp.rs @@ -647,7 +647,6 @@ impl ObjectSubclass for FallbackSwitch { const NAME: &'static str = "FallbackSwitch"; type Type = super::FallbackSwitch; type ParentType = gst_base::Aggregator; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/utils/togglerecord/src/togglerecord/imp.rs b/utils/togglerecord/src/togglerecord/imp.rs index 3e3d212d..58b24cf0 100644 --- a/utils/togglerecord/src/togglerecord/imp.rs +++ b/utils/togglerecord/src/togglerecord/imp.rs @@ -1621,7 +1621,6 @@ impl ObjectSubclass for ToggleRecord { const NAME: &'static str = "RsToggleRecord"; type Type = super::ToggleRecord; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/video/cdg/src/cdgdec/imp.rs b/video/cdg/src/cdgdec/imp.rs index 40cde0c6..110b57bc 100644 --- a/video/cdg/src/cdgdec/imp.rs +++ b/video/cdg/src/cdgdec/imp.rs @@ -33,7 +33,6 @@ impl ObjectSubclass for CdgDec { const NAME: &'static str = "CdgDec"; type Type = super::CdgDec; type ParentType = gst_video::VideoDecoder; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for CdgDec {} diff --git a/video/cdg/src/cdgparse/imp.rs b/video/cdg/src/cdgparse/imp.rs index 6aebb708..65e7cef0 100644 --- a/video/cdg/src/cdgparse/imp.rs +++ b/video/cdg/src/cdgparse/imp.rs @@ -40,7 +40,6 @@ impl ObjectSubclass for CdgParse { const NAME: &'static str = "CdgParse"; type Type = super::CdgParse; type ParentType = gst_base::BaseParse; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for CdgParse {} diff --git a/video/closedcaption/src/ccdetect/imp.rs b/video/closedcaption/src/ccdetect/imp.rs index da7cd806..75b15676 100644 --- a/video/closedcaption/src/ccdetect/imp.rs +++ b/video/closedcaption/src/ccdetect/imp.rs @@ -219,7 +219,6 @@ impl ObjectSubclass for CCDetect { const NAME: &'static str = "CCDetect"; type Type = super::CCDetect; type ParentType = gst_base::BaseTransform; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for CCDetect { diff --git a/video/closedcaption/src/cea608overlay/imp.rs b/video/closedcaption/src/cea608overlay/imp.rs index e9afe270..0dfe28c3 100644 --- a/video/closedcaption/src/cea608overlay/imp.rs +++ b/video/closedcaption/src/cea608overlay/imp.rs @@ -545,7 +545,6 @@ impl ObjectSubclass for Cea608Overlay { const NAME: &'static str = "RsCea608Overlay"; type Type = super::Cea608Overlay; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/video/closedcaption/src/cea608tott/imp.rs b/video/closedcaption/src/cea608tott/imp.rs index 79e7f259..1367b516 100644 --- a/video/closedcaption/src/cea608tott/imp.rs +++ b/video/closedcaption/src/cea608tott/imp.rs @@ -375,7 +375,6 @@ impl ObjectSubclass for Cea608ToTt { const NAME: &'static str = "Cea608ToTt"; type Type = super::Cea608ToTt; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/video/closedcaption/src/mcc_enc/imp.rs b/video/closedcaption/src/mcc_enc/imp.rs index 7aa4cf4a..b822bbd2 100644 --- a/video/closedcaption/src/mcc_enc/imp.rs +++ b/video/closedcaption/src/mcc_enc/imp.rs @@ -449,7 +449,6 @@ impl ObjectSubclass for MccEnc { const NAME: &'static str = "RsMccEnc"; type Type = super::MccEnc; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/video/closedcaption/src/mcc_parse/imp.rs b/video/closedcaption/src/mcc_parse/imp.rs index 691a2ae6..fb3d0787 100644 --- a/video/closedcaption/src/mcc_parse/imp.rs +++ b/video/closedcaption/src/mcc_parse/imp.rs @@ -1122,7 +1122,6 @@ impl ObjectSubclass for MccParse { const NAME: &'static str = "RsMccParse"; type Type = super::MccParse; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/video/closedcaption/src/scc_enc/imp.rs b/video/closedcaption/src/scc_enc/imp.rs index 8bb1a45b..374c4a32 100644 --- a/video/closedcaption/src/scc_enc/imp.rs +++ b/video/closedcaption/src/scc_enc/imp.rs @@ -337,7 +337,6 @@ impl ObjectSubclass for SccEnc { const NAME: &'static str = "RsSccEnc"; type Type = super::SccEnc; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/video/closedcaption/src/scc_parse/imp.rs b/video/closedcaption/src/scc_parse/imp.rs index eda5b663..1c8872d2 100644 --- a/video/closedcaption/src/scc_parse/imp.rs +++ b/video/closedcaption/src/scc_parse/imp.rs @@ -1002,7 +1002,6 @@ impl ObjectSubclass for SccParse { const NAME: &'static str = "RsSccParse"; type Type = super::SccParse; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs index facb9a9d..4daf24e8 100644 --- a/video/closedcaption/src/tttocea608/imp.rs +++ b/video/closedcaption/src/tttocea608/imp.rs @@ -979,7 +979,6 @@ impl ObjectSubclass for TtToCea608 { const NAME: &'static str = "TtToCea608"; type Type = super::TtToCea608; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/video/closedcaption/src/tttojson/imp.rs b/video/closedcaption/src/tttojson/imp.rs index 76cac1c7..d25fbf9c 100644 --- a/video/closedcaption/src/tttojson/imp.rs +++ b/video/closedcaption/src/tttojson/imp.rs @@ -192,7 +192,6 @@ impl ObjectSubclass for TtToJson { const NAME: &'static str = "RsTtToJson"; type Type = super::TtToJson; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/video/dav1d/src/dav1ddec/imp.rs b/video/dav1d/src/dav1ddec/imp.rs index b9b803ec..af75b0a6 100644 --- a/video/dav1d/src/dav1ddec/imp.rs +++ b/video/dav1d/src/dav1ddec/imp.rs @@ -351,7 +351,6 @@ impl ObjectSubclass for Dav1dDec { const NAME: &'static str = "RsDav1dDec"; type Type = super::Dav1dDec; type ParentType = gst_video::VideoDecoder; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for Dav1dDec {} diff --git a/video/flavors/src/flvdemux/imp.rs b/video/flavors/src/flvdemux/imp.rs index 3e49765b..662217af 100644 --- a/video/flavors/src/flvdemux/imp.rs +++ b/video/flavors/src/flvdemux/imp.rs @@ -124,7 +124,6 @@ impl ObjectSubclass for FlvDemux { const NAME: &'static str = "RsFlvDemux"; type Type = super::FlvDemux; type ParentType = gst::Element; - type Instance = gst::subclass::ElementInstanceStruct; fn with_class(klass: &Self::Class) -> Self { let templ = klass.get_pad_template("sink").unwrap(); diff --git a/video/gif/src/gifenc/imp.rs b/video/gif/src/gifenc/imp.rs index 0d949b35..7db67068 100644 --- a/video/gif/src/gifenc/imp.rs +++ b/video/gif/src/gifenc/imp.rs @@ -135,7 +135,6 @@ impl ObjectSubclass for GifEnc { const NAME: &'static str = "GifEnc"; type Type = super::GifEnc; type ParentType = gst_video::VideoEncoder; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for GifEnc { diff --git a/video/hsv/src/hsvdetector/imp.rs b/video/hsv/src/hsvdetector/imp.rs index 445e0831..805765d6 100644 --- a/video/hsv/src/hsvdetector/imp.rs +++ b/video/hsv/src/hsvdetector/imp.rs @@ -80,7 +80,6 @@ impl ObjectSubclass for HsvDetector { const NAME: &'static str = "HsvDetector"; type Type = super::HsvDetector; type ParentType = gst_base::BaseTransform; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for HsvDetector { diff --git a/video/hsv/src/hsvfilter/imp.rs b/video/hsv/src/hsvfilter/imp.rs index 21070532..8759f821 100644 --- a/video/hsv/src/hsvfilter/imp.rs +++ b/video/hsv/src/hsvfilter/imp.rs @@ -75,7 +75,6 @@ impl ObjectSubclass for HsvFilter { const NAME: &'static str = "HsvFilter"; type Type = super::HsvFilter; type ParentType = gst_base::BaseTransform; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for HsvFilter { diff --git a/video/rav1e/src/rav1enc/imp.rs b/video/rav1e/src/rav1enc/imp.rs index 591812b1..e1a639c4 100644 --- a/video/rav1e/src/rav1enc/imp.rs +++ b/video/rav1e/src/rav1enc/imp.rs @@ -209,7 +209,6 @@ impl ObjectSubclass for Rav1Enc { const NAME: &'static str = "Rav1Enc"; type Type = super::Rav1Enc; type ParentType = gst_video::VideoEncoder; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for Rav1Enc { diff --git a/video/rspng/src/pngenc/imp.rs b/video/rspng/src/pngenc/imp.rs index c89dfb94..9d90d65a 100644 --- a/video/rspng/src/pngenc/imp.rs +++ b/video/rspng/src/pngenc/imp.rs @@ -170,7 +170,6 @@ impl ObjectSubclass for PngEncoder { const NAME: &'static str = "PngEncoder"; type Type = super::PngEncoder; type ParentType = gst_video::VideoEncoder; - type Instance = gst::subclass::ElementInstanceStruct; } impl ObjectImpl for PngEncoder {