diff --git a/gstreamer-app/src/auto/app_src.rs b/gstreamer-app/src/auto/app_src.rs index 104c16165..cf777de22 100644 --- a/gstreamer-app/src/auto/app_src.rs +++ b/gstreamer-app/src/auto/app_src.rs @@ -24,9 +24,7 @@ glib::wrapper! { impl AppSrc { #[doc(alias = "gst_app_src_end_of_stream")] pub fn end_of_stream(&self) -> Result { - unsafe { - gst::FlowSuccess::try_from_glib(ffi::gst_app_src_end_of_stream(self.to_glib_none().0)) - } + unsafe { try_from_glib(ffi::gst_app_src_end_of_stream(self.to_glib_none().0)) } } #[doc(alias = "gst_app_src_get_caps")] @@ -76,7 +74,7 @@ impl AppSrc { #[doc(alias = "gst_app_src_push_sample")] pub fn push_sample(&self, sample: &gst::Sample) -> Result { unsafe { - gst::FlowSuccess::try_from_glib(ffi::gst_app_src_push_sample( + try_from_glib(ffi::gst_app_src_push_sample( self.to_glib_none().0, sample.to_glib_none().0, )) diff --git a/gstreamer-app/src/auto/enums.rs b/gstreamer-app/src/auto/enums.rs index c54c2d7ea..372d8af53 100644 --- a/gstreamer-app/src/auto/enums.rs +++ b/gstreamer-app/src/auto/enums.rs @@ -42,9 +42,9 @@ impl FromGlib for AppStreamType { unsafe fn from_glib(value: ffi::GstAppStreamType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Stream, - 1 => Self::Seekable, - 2 => Self::RandomAccess, + ffi::GST_APP_STREAM_TYPE_STREAM => Self::Stream, + ffi::GST_APP_STREAM_TYPE_SEEKABLE => Self::Seekable, + ffi::GST_APP_STREAM_TYPE_RANDOM_ACCESS => Self::RandomAccess, value => Self::__Unknown(value), } } diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-app/src/auto/versions.txt +++ b/gstreamer-app/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-app/sys/build.rs b/gstreamer-app/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-app/sys/build.rs +++ b/gstreamer-app/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-app/sys/src/lib.rs b/gstreamer-app/sys/src/lib.rs index b2038f58c..efe4a84bd 100644 --- a/gstreamer-app/sys/src/lib.rs +++ b/gstreamer-app/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -43,7 +43,7 @@ pub struct GstAppSinkCallbacks { impl ::std::fmt::Debug for GstAppSinkCallbacks { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAppSinkCallbacks @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAppSinkCallbacks @ {:p}", self)) .field("eos", &self.eos) .field("new_preroll", &self.new_preroll) .field("new_sample", &self.new_sample) @@ -69,7 +69,7 @@ pub struct GstAppSinkClass { impl ::std::fmt::Debug for GstAppSinkClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAppSinkClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAppSinkClass @ {:p}", self)) .field("basesink_class", &self.basesink_class) .field("eos", &self.eos) .field("new_preroll", &self.new_preroll) @@ -98,7 +98,7 @@ pub struct GstAppSrcCallbacks { impl ::std::fmt::Debug for GstAppSrcCallbacks { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAppSrcCallbacks @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAppSrcCallbacks @ {:p}", self)) .field("need_data", &self.need_data) .field("enough_data", &self.enough_data) .field("seek_data", &self.seek_data) @@ -125,7 +125,7 @@ pub struct GstAppSrcClass { impl ::std::fmt::Debug for GstAppSrcClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAppSrcClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAppSrcClass @ {:p}", self)) .field("basesrc_class", &self.basesrc_class) .field("need_data", &self.need_data) .field("enough_data", &self.enough_data) @@ -154,7 +154,7 @@ pub struct GstAppSink { impl ::std::fmt::Debug for GstAppSink { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAppSink @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAppSink @ {:p}", self)) .field("basesink", &self.basesink) .finish() } @@ -170,7 +170,7 @@ pub struct GstAppSrc { impl ::std::fmt::Debug for GstAppSrc { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAppSrc @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAppSrc @ {:p}", self)) .field("basesrc", &self.basesrc) .finish() } diff --git a/gstreamer-app/sys/tests/abi.rs b/gstreamer-app/sys/tests/abi.rs index 2f7c2f663..ea3343789 100644 --- a/gstreamer-app/sys/tests/abi.rs +++ b/gstreamer-app/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-app/sys/tests/constant.c b/gstreamer-app/sys/tests/constant.c index 3577fcf0c..035250a77 100644 --- a/gstreamer-app/sys/tests/constant.c +++ b/gstreamer-app/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-app/sys/tests/layout.c b/gstreamer-app/sys/tests/layout.c index ad07da3a7..a6a10e5ad 100644 --- a/gstreamer-app/sys/tests/layout.c +++ b/gstreamer-app/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-audio/src/auto/enums.rs b/gstreamer-audio/src/auto/enums.rs index 052bac752..af5a22ba4 100644 --- a/gstreamer-audio/src/auto/enums.rs +++ b/gstreamer-audio/src/auto/enums.rs @@ -127,37 +127,37 @@ impl FromGlib for AudioChannelPosition { unsafe fn from_glib(value: ffi::GstAudioChannelPosition) -> Self { skip_assert_initialized!(); match value { - -3 => Self::None, - -2 => Self::Mono, - -1 => Self::Invalid, - 0 => Self::FrontLeft, - 1 => Self::FrontRight, - 2 => Self::FrontCenter, - 3 => Self::Lfe1, - 4 => Self::RearLeft, - 5 => Self::RearRight, - 6 => Self::FrontLeftOfCenter, - 7 => Self::FrontRightOfCenter, - 8 => Self::RearCenter, - 9 => Self::Lfe2, - 10 => Self::SideLeft, - 11 => Self::SideRight, - 12 => Self::TopFrontLeft, - 13 => Self::TopFrontRight, - 14 => Self::TopFrontCenter, - 15 => Self::TopCenter, - 16 => Self::TopRearLeft, - 17 => Self::TopRearRight, - 18 => Self::TopSideLeft, - 19 => Self::TopSideRight, - 20 => Self::TopRearCenter, - 21 => Self::BottomFrontCenter, - 22 => Self::BottomFrontLeft, - 23 => Self::BottomFrontRight, - 24 => Self::WideLeft, - 25 => Self::WideRight, - 26 => Self::SurroundLeft, - 27 => Self::SurroundRight, + ffi::GST_AUDIO_CHANNEL_POSITION_NONE => Self::None, + ffi::GST_AUDIO_CHANNEL_POSITION_MONO => Self::Mono, + ffi::GST_AUDIO_CHANNEL_POSITION_INVALID => Self::Invalid, + ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT => Self::FrontLeft, + ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT => Self::FrontRight, + ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER => Self::FrontCenter, + ffi::GST_AUDIO_CHANNEL_POSITION_LFE1 => Self::Lfe1, + ffi::GST_AUDIO_CHANNEL_POSITION_REAR_LEFT => Self::RearLeft, + ffi::GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT => Self::RearRight, + ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER => Self::FrontLeftOfCenter, + ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER => Self::FrontRightOfCenter, + ffi::GST_AUDIO_CHANNEL_POSITION_REAR_CENTER => Self::RearCenter, + ffi::GST_AUDIO_CHANNEL_POSITION_LFE2 => Self::Lfe2, + ffi::GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT => Self::SideLeft, + ffi::GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT => Self::SideRight, + ffi::GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_LEFT => Self::TopFrontLeft, + ffi::GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_RIGHT => Self::TopFrontRight, + ffi::GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_CENTER => Self::TopFrontCenter, + ffi::GST_AUDIO_CHANNEL_POSITION_TOP_CENTER => Self::TopCenter, + ffi::GST_AUDIO_CHANNEL_POSITION_TOP_REAR_LEFT => Self::TopRearLeft, + ffi::GST_AUDIO_CHANNEL_POSITION_TOP_REAR_RIGHT => Self::TopRearRight, + ffi::GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_LEFT => Self::TopSideLeft, + ffi::GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_RIGHT => Self::TopSideRight, + ffi::GST_AUDIO_CHANNEL_POSITION_TOP_REAR_CENTER => Self::TopRearCenter, + ffi::GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_CENTER => Self::BottomFrontCenter, + ffi::GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_LEFT => Self::BottomFrontLeft, + ffi::GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_RIGHT => Self::BottomFrontRight, + ffi::GST_AUDIO_CHANNEL_POSITION_WIDE_LEFT => Self::WideLeft, + ffi::GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT => Self::WideRight, + ffi::GST_AUDIO_CHANNEL_POSITION_SURROUND_LEFT => Self::SurroundLeft, + ffi::GST_AUDIO_CHANNEL_POSITION_SURROUND_RIGHT => Self::SurroundRight, value => Self::__Unknown(value), } } @@ -232,10 +232,10 @@ impl FromGlib for AudioDitherMethod { unsafe fn from_glib(value: ffi::GstAudioDitherMethod) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Rpdf, - 2 => Self::Tpdf, - 3 => Self::TpdfHf, + ffi::GST_AUDIO_DITHER_NONE => Self::None, + ffi::GST_AUDIO_DITHER_RPDF => Self::Rpdf, + ffi::GST_AUDIO_DITHER_TPDF => Self::Tpdf, + ffi::GST_AUDIO_DITHER_TPDF_HF => Self::TpdfHf, value => Self::__Unknown(value), } } @@ -409,38 +409,38 @@ impl FromGlib for AudioFormat { unsafe fn from_glib(value: ffi::GstAudioFormat) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Unknown, - 1 => Self::Encoded, - 2 => Self::S8, - 3 => Self::U8, - 4 => Self::S16le, - 5 => Self::S16be, - 6 => Self::U16le, - 7 => Self::U16be, - 8 => Self::S2432le, - 9 => Self::S2432be, - 10 => Self::U2432le, - 11 => Self::U2432be, - 12 => Self::S32le, - 13 => Self::S32be, - 14 => Self::U32le, - 15 => Self::U32be, - 16 => Self::S24le, - 17 => Self::S24be, - 18 => Self::U24le, - 19 => Self::U24be, - 20 => Self::S20le, - 21 => Self::S20be, - 22 => Self::U20le, - 23 => Self::U20be, - 24 => Self::S18le, - 25 => Self::S18be, - 26 => Self::U18le, - 27 => Self::U18be, - 28 => Self::F32le, - 29 => Self::F32be, - 30 => Self::F64le, - 31 => Self::F64be, + ffi::GST_AUDIO_FORMAT_UNKNOWN => Self::Unknown, + ffi::GST_AUDIO_FORMAT_ENCODED => Self::Encoded, + ffi::GST_AUDIO_FORMAT_S8 => Self::S8, + ffi::GST_AUDIO_FORMAT_U8 => Self::U8, + ffi::GST_AUDIO_FORMAT_S16LE => Self::S16le, + ffi::GST_AUDIO_FORMAT_S16BE => Self::S16be, + ffi::GST_AUDIO_FORMAT_U16LE => Self::U16le, + ffi::GST_AUDIO_FORMAT_U16BE => Self::U16be, + ffi::GST_AUDIO_FORMAT_S24_32LE => Self::S2432le, + ffi::GST_AUDIO_FORMAT_S24_32BE => Self::S2432be, + ffi::GST_AUDIO_FORMAT_U24_32LE => Self::U2432le, + ffi::GST_AUDIO_FORMAT_U24_32BE => Self::U2432be, + ffi::GST_AUDIO_FORMAT_S32LE => Self::S32le, + ffi::GST_AUDIO_FORMAT_S32BE => Self::S32be, + ffi::GST_AUDIO_FORMAT_U32LE => Self::U32le, + ffi::GST_AUDIO_FORMAT_U32BE => Self::U32be, + ffi::GST_AUDIO_FORMAT_S24LE => Self::S24le, + ffi::GST_AUDIO_FORMAT_S24BE => Self::S24be, + ffi::GST_AUDIO_FORMAT_U24LE => Self::U24le, + ffi::GST_AUDIO_FORMAT_U24BE => Self::U24be, + ffi::GST_AUDIO_FORMAT_S20LE => Self::S20le, + ffi::GST_AUDIO_FORMAT_S20BE => Self::S20be, + ffi::GST_AUDIO_FORMAT_U20LE => Self::U20le, + ffi::GST_AUDIO_FORMAT_U20BE => Self::U20be, + ffi::GST_AUDIO_FORMAT_S18LE => Self::S18le, + ffi::GST_AUDIO_FORMAT_S18BE => Self::S18be, + ffi::GST_AUDIO_FORMAT_U18LE => Self::U18le, + ffi::GST_AUDIO_FORMAT_U18BE => Self::U18be, + ffi::GST_AUDIO_FORMAT_F32LE => Self::F32le, + ffi::GST_AUDIO_FORMAT_F32BE => Self::F32be, + ffi::GST_AUDIO_FORMAT_F64LE => Self::F64le, + ffi::GST_AUDIO_FORMAT_F64BE => Self::F64be, value => Self::__Unknown(value), } } @@ -509,8 +509,8 @@ impl FromGlib for AudioLayout { unsafe fn from_glib(value: ffi::GstAudioLayout) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Interleaved, - 1 => Self::NonInterleaved, + ffi::GST_AUDIO_LAYOUT_INTERLEAVED => Self::Interleaved, + ffi::GST_AUDIO_LAYOUT_NON_INTERLEAVED => Self::NonInterleaved, value => Self::__Unknown(value), } } @@ -588,11 +588,11 @@ impl FromGlib for AudioNoiseShapingMethod { unsafe fn from_glib(value: ffi::GstAudioNoiseShapingMethod) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::ErrorFeedback, - 2 => Self::Simple, - 3 => Self::Medium, - 4 => Self::High, + ffi::GST_AUDIO_NOISE_SHAPING_NONE => Self::None, + ffi::GST_AUDIO_NOISE_SHAPING_ERROR_FEEDBACK => Self::ErrorFeedback, + ffi::GST_AUDIO_NOISE_SHAPING_SIMPLE => Self::Simple, + ffi::GST_AUDIO_NOISE_SHAPING_MEDIUM => Self::Medium, + ffi::GST_AUDIO_NOISE_SHAPING_HIGH => Self::High, value => Self::__Unknown(value), } } @@ -676,11 +676,11 @@ impl FromGlib for AudioResamplerMethod { unsafe fn from_glib(value: ffi::GstAudioResamplerMethod) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Nearest, - 1 => Self::Linear, - 2 => Self::Cubic, - 3 => Self::BlackmanNuttall, - 4 => Self::Kaiser, + ffi::GST_AUDIO_RESAMPLER_METHOD_NEAREST => Self::Nearest, + ffi::GST_AUDIO_RESAMPLER_METHOD_LINEAR => Self::Linear, + ffi::GST_AUDIO_RESAMPLER_METHOD_CUBIC => Self::Cubic, + ffi::GST_AUDIO_RESAMPLER_METHOD_BLACKMAN_NUTTALL => Self::BlackmanNuttall, + ffi::GST_AUDIO_RESAMPLER_METHOD_KAISER => Self::Kaiser, value => Self::__Unknown(value), } } @@ -805,24 +805,24 @@ impl FromGlib for AudioRingBufferFormatType { unsafe fn from_glib(value: ffi::GstAudioRingBufferFormatType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Raw, - 1 => Self::MuLaw, - 2 => Self::ALaw, - 3 => Self::ImaAdpcm, - 4 => Self::Mpeg, - 5 => Self::Gsm, - 6 => Self::Iec958, - 7 => Self::Ac3, - 8 => Self::Eac3, - 9 => Self::Dts, - 10 => Self::Mpeg2Aac, - 11 => Self::Mpeg4Aac, + ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_RAW => Self::Raw, + ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MU_LAW => Self::MuLaw, + ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_A_LAW => Self::ALaw, + ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IMA_ADPCM => Self::ImaAdpcm, + ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG => Self::Mpeg, + ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_GSM => Self::Gsm, + ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IEC958 => Self::Iec958, + ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_AC3 => Self::Ac3, + ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_EAC3 => Self::Eac3, + ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS => Self::Dts, + ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC => Self::Mpeg2Aac, + ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC => Self::Mpeg4Aac, #[cfg(any(feature = "v1_12", feature = "dox"))] - 12 => Self::Mpeg2AacRaw, + ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW => Self::Mpeg2AacRaw, #[cfg(any(feature = "v1_12", feature = "dox"))] - 13 => Self::Mpeg4AacRaw, + ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW => Self::Mpeg4AacRaw, #[cfg(any(feature = "v1_12", feature = "dox"))] - 14 => Self::Flac, + ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC => Self::Flac, value => Self::__Unknown(value), } } @@ -894,9 +894,9 @@ impl FromGlib for StreamVolumeFormat { unsafe fn from_glib(value: ffi::GstStreamVolumeFormat) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Linear, - 1 => Self::Cubic, - 2 => Self::Db, + ffi::GST_STREAM_VOLUME_FORMAT_LINEAR => Self::Linear, + ffi::GST_STREAM_VOLUME_FORMAT_CUBIC => Self::Cubic, + ffi::GST_STREAM_VOLUME_FORMAT_DB => Self::Db, value => Self::__Unknown(value), } } diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-audio/src/auto/versions.txt +++ b/gstreamer-audio/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-audio/sys/build.rs b/gstreamer-audio/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-audio/sys/build.rs +++ b/gstreamer-audio/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-audio/sys/src/lib.rs b/gstreamer-audio/sys/src/lib.rs index 73708bcc1..1c7b5175e 100644 --- a/gstreamer-audio/sys/src/lib.rs +++ b/gstreamer-audio/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -341,7 +341,7 @@ pub struct GstAudioAggregatorClass { impl ::std::fmt::Debug for GstAudioAggregatorClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioAggregatorClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioAggregatorClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("create_output_buffer", &self.create_output_buffer) .field("aggregate_one_buffer", &self.aggregate_one_buffer) @@ -358,12 +358,9 @@ pub struct GstAudioAggregatorConvertPadClass { impl ::std::fmt::Debug for GstAudioAggregatorConvertPadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstAudioAggregatorConvertPadClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .finish() + f.debug_struct(&format!("GstAudioAggregatorConvertPadClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .finish() } } @@ -390,14 +387,11 @@ pub struct GstAudioAggregatorPadClass { impl ::std::fmt::Debug for GstAudioAggregatorPadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstAudioAggregatorPadClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .field("convert_buffer", &self.convert_buffer) - .field("update_conversion_info", &self.update_conversion_info) - .finish() + f.debug_struct(&format!("GstAudioAggregatorPadClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .field("convert_buffer", &self.convert_buffer) + .field("update_conversion_info", &self.update_conversion_info) + .finish() } } @@ -425,7 +419,7 @@ pub struct GstAudioBaseSinkClass { impl ::std::fmt::Debug for GstAudioBaseSinkClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioBaseSinkClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioBaseSinkClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("create_ringbuffer", &self.create_ringbuffer) .field("payload", &self.payload) @@ -449,7 +443,7 @@ pub struct GstAudioBaseSrcClass { impl ::std::fmt::Debug for GstAudioBaseSrcClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioBaseSrcClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioBaseSrcClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("create_ringbuffer", &self.create_ringbuffer) .finish() @@ -477,7 +471,7 @@ pub struct GstAudioBuffer { impl ::std::fmt::Debug for GstAudioBuffer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioBuffer @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioBuffer @ {:p}", self)) .field("info", &self.info) .field("n_samples", &self.n_samples) .field("n_planes", &self.n_planes) @@ -499,7 +493,7 @@ pub struct GstAudioCdSrcClass { impl ::std::fmt::Debug for GstAudioCdSrcClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioCdSrcClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioCdSrcClass @ {:p}", self)) .field("pushsrc_class", &self.pushsrc_class) .field("open", &self.open) .field("close", &self.close) @@ -527,7 +521,7 @@ pub struct GstAudioCdSrcTrack { impl ::std::fmt::Debug for GstAudioCdSrcTrack { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioCdSrcTrack @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioCdSrcTrack @ {:p}", self)) .field("is_audio", &self.is_audio) .field("num", &self.num) .field("start", &self.start) @@ -553,7 +547,7 @@ pub struct GstAudioClippingMeta { impl ::std::fmt::Debug for GstAudioClippingMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioClippingMeta @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioClippingMeta @ {:p}", self)) .field("meta", &self.meta) .field("format", &self.format) .field("start", &self.start) @@ -571,7 +565,7 @@ pub struct GstAudioClockClass { impl ::std::fmt::Debug for GstAudioClockClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioClockClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioClockClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -582,7 +576,7 @@ pub struct GstAudioConverter(c_void); impl ::std::fmt::Debug for GstAudioConverter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioConverter @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioConverter @ {:p}", self)) .finish() } } @@ -640,7 +634,7 @@ pub struct GstAudioDecoderClass { impl ::std::fmt::Debug for GstAudioDecoderClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioDecoderClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioDecoderClass @ {:p}", self)) .field("element_class", &self.element_class) .field("start", &self.start) .field("stop", &self.stop) @@ -682,7 +676,7 @@ pub struct GstAudioDownmixMeta { impl ::std::fmt::Debug for GstAudioDownmixMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioDownmixMeta @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioDownmixMeta @ {:p}", self)) .field("meta", &self.meta) .field("from_position", &self.from_position) .field("to_position", &self.to_position) @@ -738,7 +732,7 @@ pub struct GstAudioEncoderClass { impl ::std::fmt::Debug for GstAudioEncoderClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioEncoderClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioEncoderClass @ {:p}", self)) .field("element_class", &self.element_class) .field("start", &self.start) .field("stop", &self.stop) @@ -776,7 +770,7 @@ pub struct GstAudioFilterClass { impl ::std::fmt::Debug for GstAudioFilterClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioFilterClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioFilterClass @ {:p}", self)) .field("basetransformclass", &self.basetransformclass) .field("setup", &self.setup) .finish() @@ -802,7 +796,7 @@ pub struct GstAudioFormatInfo { impl ::std::fmt::Debug for GstAudioFormatInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioFormatInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioFormatInfo @ {:p}", self)) .field("format", &self.format) .field("name", &self.name) .field("description", &self.description) @@ -833,7 +827,7 @@ pub struct GstAudioInfo { impl ::std::fmt::Debug for GstAudioInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioInfo @ {:p}", self)) .field("finfo", &self.finfo) .field("flags", &self.flags) .field("layout", &self.layout) @@ -857,7 +851,7 @@ pub struct GstAudioMeta { impl ::std::fmt::Debug for GstAudioMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioMeta @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioMeta @ {:p}", self)) .field("meta", &self.meta) .field("info", &self.info) .field("samples", &self.samples) @@ -908,7 +902,7 @@ pub struct GstAudioRingBufferClass { impl ::std::fmt::Debug for GstAudioRingBufferClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioRingBufferClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioRingBufferClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("open_device", &self.open_device) .field("acquire", &self.acquire) @@ -942,7 +936,7 @@ pub struct GstAudioRingBufferSpec { impl ::std::fmt::Debug for GstAudioRingBufferSpec { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioRingBufferSpec @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioRingBufferSpec @ {:p}", self)) .field("caps", &self.caps) .field("type_", &self.type_) .field("info", &self.info) @@ -975,7 +969,7 @@ pub struct GstAudioSinkClass { impl ::std::fmt::Debug for GstAudioSinkClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioSinkClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioSinkClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("open", &self.open) .field("prepare", &self.prepare) @@ -1000,12 +994,9 @@ pub struct GstAudioSinkClassExtension { impl ::std::fmt::Debug for GstAudioSinkClassExtension { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstAudioSinkClassExtension @ {:?}", - self as *const _ - )) - .field("clear_all", &self.clear_all) - .finish() + f.debug_struct(&format!("GstAudioSinkClassExtension @ {:p}", self)) + .field("clear_all", &self.clear_all) + .finish() } } @@ -1028,7 +1019,7 @@ pub struct GstAudioSrcClass { impl ::std::fmt::Debug for GstAudioSrcClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioSrcClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioSrcClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("open", &self.open) .field("prepare", &self.prepare) @@ -1046,7 +1037,7 @@ pub struct GstAudioStreamAlign(c_void); impl ::std::fmt::Debug for GstAudioStreamAlign { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioStreamAlign @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioStreamAlign @ {:p}", self)) .finish() } } @@ -1059,12 +1050,9 @@ pub struct GstStreamVolumeInterface { impl ::std::fmt::Debug for GstStreamVolumeInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstStreamVolumeInterface @ {:?}", - self as *const _ - )) - .field("iface", &self.iface) - .finish() + f.debug_struct(&format!("GstStreamVolumeInterface @ {:p}", self)) + .field("iface", &self.iface) + .finish() } } @@ -1080,7 +1068,7 @@ pub struct GstAudioAggregator { impl ::std::fmt::Debug for GstAudioAggregator { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioAggregator @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioAggregator @ {:p}", self)) .field("parent", &self.parent) .field("current_caps", &self.current_caps) .finish() @@ -1097,11 +1085,8 @@ pub struct GstAudioAggregatorConvertPad { impl ::std::fmt::Debug for GstAudioAggregatorConvertPad { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstAudioAggregatorConvertPad @ {:?}", - self as *const _ - )) - .finish() + f.debug_struct(&format!("GstAudioAggregatorConvertPad @ {:p}", self)) + .finish() } } @@ -1116,7 +1101,7 @@ pub struct GstAudioAggregatorPad { impl ::std::fmt::Debug for GstAudioAggregatorPad { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioAggregatorPad @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioAggregatorPad @ {:p}", self)) .field("parent", &self.parent) .field("info", &self.info) .finish() @@ -1139,7 +1124,7 @@ pub struct GstAudioBaseSink { impl ::std::fmt::Debug for GstAudioBaseSink { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioBaseSink @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioBaseSink @ {:p}", self)) .field("element", &self.element) .field("ringbuffer", &self.ringbuffer) .field("buffer_time", &self.buffer_time) @@ -1166,7 +1151,7 @@ pub struct GstAudioBaseSrc { impl ::std::fmt::Debug for GstAudioBaseSrc { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioBaseSrc @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioBaseSrc @ {:p}", self)) .field("element", &self.element) .field("ringbuffer", &self.ringbuffer) .field("buffer_time", &self.buffer_time) @@ -1189,7 +1174,7 @@ pub struct GstAudioCdSrc { impl ::std::fmt::Debug for GstAudioCdSrc { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioCdSrc @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioCdSrc @ {:p}", self)) .field("pushsrc", &self.pushsrc) .field("tags", &self.tags) .finish() @@ -1210,7 +1195,7 @@ pub struct GstAudioClock { impl ::std::fmt::Debug for GstAudioClock { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioClock @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioClock @ {:p}", self)) .field("clock", &self.clock) .field("func", &self.func) .field("user_data", &self.user_data) @@ -1234,7 +1219,7 @@ pub struct GstAudioDecoder { impl ::std::fmt::Debug for GstAudioDecoder { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioDecoder @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioDecoder @ {:p}", self)) .field("element", &self.element) .field("sinkpad", &self.sinkpad) .field("srcpad", &self.srcpad) @@ -1260,7 +1245,7 @@ pub struct GstAudioEncoder { impl ::std::fmt::Debug for GstAudioEncoder { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioEncoder @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioEncoder @ {:p}", self)) .field("element", &self.element) .field("sinkpad", &self.sinkpad) .field("srcpad", &self.srcpad) @@ -1281,7 +1266,7 @@ pub struct GstAudioFilter { impl ::std::fmt::Debug for GstAudioFilter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioFilter @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioFilter @ {:p}", self)) .field("basetransform", &self.basetransform) .field("info", &self.info) .finish() @@ -1318,7 +1303,7 @@ pub struct GstAudioRingBuffer { impl ::std::fmt::Debug for GstAudioRingBuffer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioRingBuffer @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioRingBuffer @ {:p}", self)) .field("object", &self.object) .field("cond", &self.cond) .field("open", &self.open) @@ -1346,7 +1331,7 @@ pub struct GstAudioSink { impl ::std::fmt::Debug for GstAudioSink { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioSink @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioSink @ {:p}", self)) .field("element", &self.element) .finish() } @@ -1362,7 +1347,7 @@ pub struct GstAudioSrc { impl ::std::fmt::Debug for GstAudioSrc { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioSrc @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioSrc @ {:p}", self)) .field("element", &self.element) .finish() } @@ -1374,7 +1359,7 @@ pub struct GstStreamVolume(c_void); impl ::std::fmt::Debug for GstStreamVolume { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GstStreamVolume @ {:?}", self as *const _) + write!(f, "GstStreamVolume @ {:p}", self) } } diff --git a/gstreamer-audio/sys/tests/abi.rs b/gstreamer-audio/sys/tests/abi.rs index c82c3883c..2ad4333e0 100644 --- a/gstreamer-audio/sys/tests/abi.rs +++ b/gstreamer-audio/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-audio/sys/tests/constant.c b/gstreamer-audio/sys/tests/constant.c index 42e42aa12..96fb64408 100644 --- a/gstreamer-audio/sys/tests/constant.c +++ b/gstreamer-audio/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-audio/sys/tests/layout.c b/gstreamer-audio/sys/tests/layout.c index eedb5809c..2717d8224 100644 --- a/gstreamer-audio/sys/tests/layout.c +++ b/gstreamer-audio/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-base/src/auto/base_sink.rs b/gstreamer-base/src/auto/base_sink.rs index d9a7668ea..c3351c407 100644 --- a/gstreamer-base/src/auto/base_sink.rs +++ b/gstreamer-base/src/auto/base_sink.rs @@ -436,7 +436,7 @@ impl> BaseSinkExt for O { ) -> (Result, gst::ClockTimeDiff) { unsafe { let mut jitter = mem::MaybeUninit::uninit(); - let ret = gst::FlowSuccess::try_from_glib(ffi::gst_base_sink_wait( + let ret = try_from_glib(ffi::gst_base_sink_wait( self.as_ref().to_glib_none().0, time.into_glib(), jitter.as_mut_ptr(), @@ -455,7 +455,7 @@ impl> BaseSinkExt for O { ) { unsafe { let mut jitter = mem::MaybeUninit::uninit(); - let ret = gst::ClockSuccess::try_from_glib(ffi::gst_base_sink_wait_clock( + let ret = try_from_glib(ffi::gst_base_sink_wait_clock( self.as_ref().to_glib_none().0, time.into_glib(), jitter.as_mut_ptr(), @@ -467,7 +467,7 @@ impl> BaseSinkExt for O { fn wait_preroll(&self) -> Result { unsafe { - gst::FlowSuccess::try_from_glib(ffi::gst_base_sink_wait_preroll( + try_from_glib(ffi::gst_base_sink_wait_preroll( self.as_ref().to_glib_none().0, )) } diff --git a/gstreamer-base/src/auto/base_src.rs b/gstreamer-base/src/auto/base_src.rs index 293285e74..d5da38deb 100644 --- a/gstreamer-base/src/auto/base_src.rs +++ b/gstreamer-base/src/auto/base_src.rs @@ -243,16 +243,12 @@ impl> BaseSrcExt for O { } fn start_wait(&self) -> Result { - unsafe { - gst::FlowSuccess::try_from_glib(ffi::gst_base_src_start_wait( - self.as_ref().to_glib_none().0, - )) - } + unsafe { try_from_glib(ffi::gst_base_src_start_wait(self.as_ref().to_glib_none().0)) } } fn wait_playing(&self) -> Result { unsafe { - gst::FlowSuccess::try_from_glib(ffi::gst_base_src_wait_playing( + try_from_glib(ffi::gst_base_src_wait_playing( self.as_ref().to_glib_none().0, )) } diff --git a/gstreamer-base/src/auto/enums.rs b/gstreamer-base/src/auto/enums.rs index 640888465..111228491 100644 --- a/gstreamer-base/src/auto/enums.rs +++ b/gstreamer-base/src/auto/enums.rs @@ -58,9 +58,9 @@ impl FromGlib for AggregatorStartTimeSelec unsafe fn from_glib(value: ffi::GstAggregatorStartTimeSelection) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Zero, - 1 => Self::First, - 2 => Self::Set, + ffi::GST_AGGREGATOR_START_TIME_SELECTION_ZERO => Self::Zero, + ffi::GST_AGGREGATOR_START_TIME_SELECTION_FIRST => Self::First, + ffi::GST_AGGREGATOR_START_TIME_SELECTION_SET => Self::Set, value => Self::__Unknown(value), } } diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-base/src/auto/versions.txt +++ b/gstreamer-base/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-base/sys/build.rs b/gstreamer-base/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-base/sys/build.rs +++ b/gstreamer-base/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-base/sys/src/lib.rs b/gstreamer-base/sys/src/lib.rs index 40cb702dd..45be81101 100644 --- a/gstreamer-base/sys/src/lib.rs +++ b/gstreamer-base/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -68,7 +68,7 @@ pub union GstCollectData_ABI { impl ::std::fmt::Debug for GstCollectData_ABI { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstCollectData_ABI @ {:?}", self as *const _)) + f.debug_struct(&format!("GstCollectData_ABI @ {:p}", self)) .field("abi", unsafe { &self.abi }) .finish() } @@ -233,7 +233,7 @@ pub struct GstAggregatorClass { impl ::std::fmt::Debug for GstAggregatorClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAggregatorClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAggregatorClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("flush", &self.flush) .field("clip", &self.clip) @@ -281,7 +281,7 @@ pub struct GstAggregatorPadClass { impl ::std::fmt::Debug for GstAggregatorPadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAggregatorPadClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAggregatorPadClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("flush", &self.flush) .field("skip_buffer", &self.skip_buffer) @@ -339,7 +339,7 @@ pub struct GstBaseParseClass { impl ::std::fmt::Debug for GstBaseParseClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBaseParseClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBaseParseClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("start", &self.start) .field("stop", &self.stop) @@ -373,7 +373,7 @@ pub struct GstBaseParseFrame { impl ::std::fmt::Debug for GstBaseParseFrame { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBaseParseFrame @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBaseParseFrame @ {:p}", self)) .field("buffer", &self.buffer) .field("out_buffer", &self.out_buffer) .field("flags", &self.flags) @@ -433,7 +433,7 @@ pub struct GstBaseSinkClass { impl ::std::fmt::Debug for GstBaseSinkClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBaseSinkClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBaseSinkClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("get_caps", &self.get_caps) .field("set_caps", &self.set_caps) @@ -523,7 +523,7 @@ pub struct GstBaseSrcClass { impl ::std::fmt::Debug for GstBaseSrcClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBaseSrcClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBaseSrcClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("get_caps", &self.get_caps) .field("negotiate", &self.negotiate) @@ -680,7 +680,7 @@ pub struct GstBaseTransformClass { impl ::std::fmt::Debug for GstBaseTransformClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBaseTransformClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBaseTransformClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("passthrough_on_same_caps", &self.passthrough_on_same_caps) .field( @@ -730,7 +730,7 @@ pub struct GstBitReader { impl ::std::fmt::Debug for GstBitReader { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBitReader @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBitReader @ {:p}", self)) .field("data", &self.data) .field("size", &self.size) .field("byte", &self.byte) @@ -752,7 +752,7 @@ pub struct GstBitWriter { impl ::std::fmt::Debug for GstBitWriter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBitWriter @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBitWriter @ {:p}", self)) .field("data", &self.data) .field("bit_size", &self.bit_size) .finish() @@ -770,7 +770,7 @@ pub struct GstByteReader { impl ::std::fmt::Debug for GstByteReader { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstByteReader @ {:?}", self as *const _)) + f.debug_struct(&format!("GstByteReader @ {:p}", self)) .field("data", &self.data) .field("size", &self.size) .field("byte", &self.byte) @@ -790,7 +790,7 @@ pub struct GstByteWriter { impl ::std::fmt::Debug for GstByteWriter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstByteWriter @ {:?}", self as *const _)) + f.debug_struct(&format!("GstByteWriter @ {:p}", self)) .field("parent", &self.parent) .field("alloc_size", &self.alloc_size) .field("fixed", &self.fixed) @@ -814,7 +814,7 @@ pub struct GstCollectData { impl ::std::fmt::Debug for GstCollectData { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstCollectData @ {:?}", self as *const _)) + f.debug_struct(&format!("GstCollectData @ {:p}", self)) .field("collect", &self.collect) .field("pad", &self.pad) .field("buffer", &self.buffer) @@ -838,7 +838,7 @@ pub struct GstCollectData_ABI_abi { impl ::std::fmt::Debug for GstCollectData_ABI_abi { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstCollectData_ABI_abi @ {:?}", self as *const _)) + f.debug_struct(&format!("GstCollectData_ABI_abi @ {:p}", self)) .field("dts", &self.dts) .finish() } @@ -853,7 +853,7 @@ pub struct GstCollectPadsClass { impl ::std::fmt::Debug for GstCollectPadsClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstCollectPadsClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstCollectPadsClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -875,7 +875,7 @@ pub struct GstDataQueueClass { impl ::std::fmt::Debug for GstDataQueueClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDataQueueClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDataQueueClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("empty", &self.empty) .field("full", &self.full) @@ -897,7 +897,7 @@ pub struct GstDataQueueItem { impl ::std::fmt::Debug for GstDataQueueItem { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDataQueueItem @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDataQueueItem @ {:p}", self)) .field("object", &self.object) .field("size", &self.size) .field("duration", &self.duration) @@ -922,7 +922,7 @@ pub struct GstDataQueueSize { impl ::std::fmt::Debug for GstDataQueueSize { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDataQueueSize @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDataQueueSize @ {:p}", self)) .field("visible", &self.visible) .field("bytes", &self.bytes) .field("time", &self.time) @@ -935,7 +935,7 @@ pub struct GstFlowCombiner(c_void); impl ::std::fmt::Debug for GstFlowCombiner { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstFlowCombiner @ {:?}", self as *const _)) + f.debug_struct(&format!("GstFlowCombiner @ {:p}", self)) .finish() } } @@ -955,7 +955,7 @@ pub struct GstPushSrcClass { impl ::std::fmt::Debug for GstPushSrcClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPushSrcClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPushSrcClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("create", &self.create) .field("alloc", &self.alloc) @@ -975,8 +975,7 @@ pub struct GstAdapter(c_void); impl ::std::fmt::Debug for GstAdapter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAdapter @ {:?}", self as *const _)) - .finish() + f.debug_struct(&format!("GstAdapter @ {:p}", self)).finish() } } @@ -991,7 +990,7 @@ pub struct GstAggregator { impl ::std::fmt::Debug for GstAggregator { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAggregator @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAggregator @ {:p}", self)) .field("parent", &self.parent) .field("srcpad", &self.srcpad) .finish() @@ -1009,7 +1008,7 @@ pub struct GstAggregatorPad { impl ::std::fmt::Debug for GstAggregatorPad { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAggregatorPad @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAggregatorPad @ {:p}", self)) .field("parent", &self.parent) .field("segment", &self.segment) .finish() @@ -1030,7 +1029,7 @@ pub struct GstBaseParse { impl ::std::fmt::Debug for GstBaseParse { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBaseParse @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBaseParse @ {:p}", self)) .field("element", &self.element) .field("sinkpad", &self.sinkpad) .field("srcpad", &self.srcpad) @@ -1068,7 +1067,7 @@ pub struct GstBaseSink { impl ::std::fmt::Debug for GstBaseSink { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBaseSink @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBaseSink @ {:p}", self)) .field("element", &self.element) .field("sinkpad", &self.sinkpad) .field("pad_mode", &self.pad_mode) @@ -1113,7 +1112,7 @@ pub struct GstBaseSrc { impl ::std::fmt::Debug for GstBaseSrc { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBaseSrc @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBaseSrc @ {:p}", self)) .field("element", &self.element) .field("srcpad", &self.srcpad) .field("live_lock", &self.live_lock) @@ -1151,7 +1150,7 @@ pub struct GstBaseTransform { impl ::std::fmt::Debug for GstBaseTransform { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBaseTransform @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBaseTransform @ {:p}", self)) .field("element", &self.element) .field("sinkpad", &self.sinkpad) .field("srcpad", &self.srcpad) @@ -1174,7 +1173,7 @@ pub struct GstCollectPads { impl ::std::fmt::Debug for GstCollectPads { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstCollectPads @ {:?}", self as *const _)) + f.debug_struct(&format!("GstCollectPads @ {:p}", self)) .field("object", &self.object) .field("data", &self.data) .finish() @@ -1191,7 +1190,7 @@ pub struct GstDataQueue { impl ::std::fmt::Debug for GstDataQueue { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDataQueue @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDataQueue @ {:p}", self)) .field("object", &self.object) .finish() } @@ -1206,7 +1205,7 @@ pub struct GstPushSrc { impl ::std::fmt::Debug for GstPushSrc { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPushSrc @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPushSrc @ {:p}", self)) .field("parent", &self.parent) .finish() } diff --git a/gstreamer-base/sys/tests/abi.rs b/gstreamer-base/sys/tests/abi.rs index 863160441..affe6ae19 100644 --- a/gstreamer-base/sys/tests/abi.rs +++ b/gstreamer-base/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-base/sys/tests/constant.c b/gstreamer-base/sys/tests/constant.c index db7616e1f..de0e3940f 100644 --- a/gstreamer-base/sys/tests/constant.c +++ b/gstreamer-base/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-base/sys/tests/layout.c b/gstreamer-base/sys/tests/layout.c index 7f6b78945..61b092a2f 100644 --- a/gstreamer-base/sys/tests/layout.c +++ b/gstreamer-base/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-check/src/auto/versions.txt b/gstreamer-check/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-check/src/auto/versions.txt +++ b/gstreamer-check/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-check/sys/build.rs b/gstreamer-check/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-check/sys/build.rs +++ b/gstreamer-check/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-check/sys/src/lib.rs b/gstreamer-check/sys/src/lib.rs index 2ddb56463..e56c98971 100644 --- a/gstreamer-check/sys/src/lib.rs +++ b/gstreamer-check/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -45,7 +45,7 @@ pub struct GstHarness { impl ::std::fmt::Debug for GstHarness { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstHarness @ {:?}", self as *const _)) + f.debug_struct(&format!("GstHarness @ {:p}", self)) .field("element", &self.element) .field("srcpad", &self.srcpad) .field("sinkpad", &self.sinkpad) @@ -78,7 +78,7 @@ pub struct GstTestClockClass { impl ::std::fmt::Debug for GstTestClockClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTestClockClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTestClockClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -99,7 +99,7 @@ pub struct GstTestClock { impl ::std::fmt::Debug for GstTestClock { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTestClock @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTestClock @ {:p}", self)) .field("parent", &self.parent) .finish() } diff --git a/gstreamer-check/sys/tests/abi.rs b/gstreamer-check/sys/tests/abi.rs index 109a43fb4..2227552c2 100644 --- a/gstreamer-check/sys/tests/abi.rs +++ b/gstreamer-check/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-check/sys/tests/constant.c b/gstreamer-check/sys/tests/constant.c index 691b5d2b3..7f6ac9c5c 100644 --- a/gstreamer-check/sys/tests/constant.c +++ b/gstreamer-check/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-check/sys/tests/layout.c b/gstreamer-check/sys/tests/layout.c index 8cbc31b2f..6eebf9025 100644 --- a/gstreamer-check/sys/tests/layout.c +++ b/gstreamer-check/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-controller/src/auto/enums.rs b/gstreamer-controller/src/auto/enums.rs index 787f2c76c..f2b607638 100644 --- a/gstreamer-controller/src/auto/enums.rs +++ b/gstreamer-controller/src/auto/enums.rs @@ -45,10 +45,10 @@ impl FromGlib for InterpolationMode { unsafe fn from_glib(value: ffi::GstInterpolationMode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Linear, - 2 => Self::Cubic, - 3 => Self::CubicMonotonic, + ffi::GST_INTERPOLATION_MODE_NONE => Self::None, + ffi::GST_INTERPOLATION_MODE_LINEAR => Self::Linear, + ffi::GST_INTERPOLATION_MODE_CUBIC => Self::Cubic, + ffi::GST_INTERPOLATION_MODE_CUBIC_MONOTONIC => Self::CubicMonotonic, value => Self::__Unknown(value), } } @@ -126,11 +126,11 @@ impl FromGlib for LFOWaveform { unsafe fn from_glib(value: ffi::GstLFOWaveform) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Sine, - 1 => Self::Square, - 2 => Self::Saw, - 3 => Self::ReverseSaw, - 4 => Self::Triangle, + ffi::GST_LFO_WAVEFORM_SINE => Self::Sine, + ffi::GST_LFO_WAVEFORM_SQUARE => Self::Square, + ffi::GST_LFO_WAVEFORM_SAW => Self::Saw, + ffi::GST_LFO_WAVEFORM_REVERSE_SAW => Self::ReverseSaw, + ffi::GST_LFO_WAVEFORM_TRIANGLE => Self::Triangle, value => Self::__Unknown(value), } } diff --git a/gstreamer-controller/src/auto/versions.txt b/gstreamer-controller/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-controller/src/auto/versions.txt +++ b/gstreamer-controller/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-controller/sys/build.rs b/gstreamer-controller/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-controller/sys/build.rs +++ b/gstreamer-controller/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-controller/sys/src/lib.rs b/gstreamer-controller/sys/src/lib.rs index b41b2f5d5..c23002147 100644 --- a/gstreamer-controller/sys/src/lib.rs +++ b/gstreamer-controller/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -50,7 +50,7 @@ pub union GstControlPoint_cache { impl ::std::fmt::Debug for GstControlPoint_cache { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstControlPoint_cache @ {:?}", self as *const _)) + f.debug_struct(&format!("GstControlPoint_cache @ {:p}", self)) .field("cubic", unsafe { &self.cubic }) .field("cubic_monotonic", unsafe { &self.cubic_monotonic }) .finish() @@ -66,13 +66,10 @@ pub union GstDirectControlBinding_ABI { impl ::std::fmt::Debug for GstDirectControlBinding_ABI { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstDirectControlBinding_ABI @ {:?}", - self as *const _ - )) - .field("_gst_reserved", unsafe { &self._gst_reserved }) - .field("abi", unsafe { &self.abi }) - .finish() + f.debug_struct(&format!("GstDirectControlBinding_ABI @ {:p}", self)) + .field("_gst_reserved", unsafe { &self._gst_reserved }) + .field("abi", unsafe { &self.abi }) + .finish() } } @@ -92,12 +89,9 @@ pub struct GstARGBControlBindingClass { impl ::std::fmt::Debug for GstARGBControlBindingClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstARGBControlBindingClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .finish() + f.debug_struct(&format!("GstARGBControlBindingClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .finish() } } @@ -111,7 +105,7 @@ pub struct GstControlPoint { impl ::std::fmt::Debug for GstControlPoint { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstControlPoint @ {:?}", self as *const _)) + f.debug_struct(&format!("GstControlPoint @ {:p}", self)) .field("timestamp", &self.timestamp) .field("value", &self.value) .field("cache", &self.cache) @@ -128,13 +122,10 @@ pub struct GstControlPoint_cache_cubic { impl ::std::fmt::Debug for GstControlPoint_cache_cubic { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstControlPoint_cache_cubic @ {:?}", - self as *const _ - )) - .field("h", &self.h) - .field("z", &self.z) - .finish() + f.debug_struct(&format!("GstControlPoint_cache_cubic @ {:p}", self)) + .field("h", &self.h) + .field("z", &self.z) + .finish() } } @@ -149,8 +140,8 @@ pub struct GstControlPoint_cache_cubic_monotonic { impl ::std::fmt::Debug for GstControlPoint_cache_cubic_monotonic { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( - "GstControlPoint_cache_cubic_monotonic @ {:?}", - self as *const _ + "GstControlPoint_cache_cubic_monotonic @ {:p}", + self )) .field("c1s", &self.c1s) .field("c2s", &self.c2s) @@ -168,12 +159,9 @@ pub struct GstDirectControlBindingClass { impl ::std::fmt::Debug for GstDirectControlBindingClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstDirectControlBindingClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .finish() + f.debug_struct(&format!("GstDirectControlBindingClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .finish() } } @@ -185,12 +173,9 @@ pub struct GstDirectControlBinding_ABI_abi { impl ::std::fmt::Debug for GstDirectControlBinding_ABI_abi { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstDirectControlBinding_ABI_abi @ {:?}", - self as *const _ - )) - .field("want_absolute", &self.want_absolute) - .finish() + f.debug_struct(&format!("GstDirectControlBinding_ABI_abi @ {:p}", self)) + .field("want_absolute", &self.want_absolute) + .finish() } } @@ -203,12 +188,9 @@ pub struct GstInterpolationControlSourceClass { impl ::std::fmt::Debug for GstInterpolationControlSourceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstInterpolationControlSourceClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .finish() + f.debug_struct(&format!("GstInterpolationControlSourceClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .finish() } } @@ -226,12 +208,9 @@ pub struct GstLFOControlSourceClass { impl ::std::fmt::Debug for GstLFOControlSourceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstLFOControlSourceClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .finish() + f.debug_struct(&format!("GstLFOControlSourceClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .finish() } } @@ -249,11 +228,8 @@ pub struct GstProxyControlBindingClass { impl ::std::fmt::Debug for GstProxyControlBindingClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstProxyControlBindingClass @ {:?}", - self as *const _ - )) - .finish() + f.debug_struct(&format!("GstProxyControlBindingClass @ {:p}", self)) + .finish() } } @@ -266,12 +242,9 @@ pub struct GstTimedValueControlSourceClass { impl ::std::fmt::Debug for GstTimedValueControlSourceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstTimedValueControlSourceClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .finish() + f.debug_struct(&format!("GstTimedValueControlSourceClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .finish() } } @@ -289,12 +262,9 @@ pub struct GstTriggerControlSourceClass { impl ::std::fmt::Debug for GstTriggerControlSourceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstTriggerControlSourceClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .finish() + f.debug_struct(&format!("GstTriggerControlSourceClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .finish() } } @@ -319,7 +289,7 @@ pub struct GstARGBControlBinding { impl ::std::fmt::Debug for GstARGBControlBinding { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstARGBControlBinding @ {:?}", self as *const _)) + f.debug_struct(&format!("GstARGBControlBinding @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -340,7 +310,7 @@ pub struct GstDirectControlBinding { impl ::std::fmt::Debug for GstDirectControlBinding { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDirectControlBinding @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDirectControlBinding @ {:p}", self)) .field("parent", &self.parent) .field("ABI", &self.ABI) .finish() @@ -357,12 +327,9 @@ pub struct GstInterpolationControlSource { impl ::std::fmt::Debug for GstInterpolationControlSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstInterpolationControlSource @ {:?}", - self as *const _ - )) - .field("parent", &self.parent) - .finish() + f.debug_struct(&format!("GstInterpolationControlSource @ {:p}", self)) + .field("parent", &self.parent) + .finish() } } @@ -377,7 +344,7 @@ pub struct GstLFOControlSource { impl ::std::fmt::Debug for GstLFOControlSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstLFOControlSource @ {:?}", self as *const _)) + f.debug_struct(&format!("GstLFOControlSource @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -394,7 +361,7 @@ pub struct GstProxyControlBinding { impl ::std::fmt::Debug for GstProxyControlBinding { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstProxyControlBinding @ {:?}", self as *const _)) + f.debug_struct(&format!("GstProxyControlBinding @ {:p}", self)) .finish() } } @@ -413,16 +380,13 @@ pub struct GstTimedValueControlSource { impl ::std::fmt::Debug for GstTimedValueControlSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstTimedValueControlSource @ {:?}", - self as *const _ - )) - .field("parent", &self.parent) - .field("lock", &self.lock) - .field("values", &self.values) - .field("nvalues", &self.nvalues) - .field("valid_cache", &self.valid_cache) - .finish() + f.debug_struct(&format!("GstTimedValueControlSource @ {:p}", self)) + .field("parent", &self.parent) + .field("lock", &self.lock) + .field("values", &self.values) + .field("nvalues", &self.nvalues) + .field("valid_cache", &self.valid_cache) + .finish() } } @@ -436,7 +400,7 @@ pub struct GstTriggerControlSource { impl ::std::fmt::Debug for GstTriggerControlSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTriggerControlSource @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTriggerControlSource @ {:p}", self)) .field("parent", &self.parent) .finish() } diff --git a/gstreamer-controller/sys/tests/abi.rs b/gstreamer-controller/sys/tests/abi.rs index 194cfc5eb..c41410a83 100644 --- a/gstreamer-controller/sys/tests/abi.rs +++ b/gstreamer-controller/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-controller/sys/tests/constant.c b/gstreamer-controller/sys/tests/constant.c index fe1ef91dd..feea1ea57 100644 --- a/gstreamer-controller/sys/tests/constant.c +++ b/gstreamer-controller/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-controller/sys/tests/layout.c b/gstreamer-controller/sys/tests/layout.c index ddc2481fc..aa3feb65f 100644 --- a/gstreamer-controller/sys/tests/layout.c +++ b/gstreamer-controller/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-editing-services/src/auto/enums.rs b/gstreamer-editing-services/src/auto/enums.rs index 4b9c3e810..39b6277f2 100644 --- a/gstreamer-editing-services/src/auto/enums.rs +++ b/gstreamer-editing-services/src/auto/enums.rs @@ -73,9 +73,9 @@ impl FromGlib for Edge { unsafe fn from_glib(value: ffi::GESEdge) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Start, - 1 => Self::End, - 2 => Self::None, + ffi::GES_EDGE_START => Self::Start, + ffi::GES_EDGE_END => Self::End, + ffi::GES_EDGE_NONE => Self::None, value => Self::__Unknown(value), } } @@ -178,11 +178,11 @@ impl FromGlib for EditMode { unsafe fn from_glib(value: ffi::GESEditMode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Normal, - 1 => Self::Ripple, - 2 => Self::Roll, - 3 => Self::Trim, - 4 => Self::Slide, + ffi::GES_EDIT_MODE_NORMAL => Self::Normal, + ffi::GES_EDIT_MODE_RIPPLE => Self::Ripple, + ffi::GES_EDIT_MODE_ROLL => Self::Roll, + ffi::GES_EDIT_MODE_TRIM => Self::Trim, + ffi::GES_EDIT_MODE_SLIDE => Self::Slide, value => Self::__Unknown(value), } } @@ -461,78 +461,78 @@ impl FromGlib for VideoStandardTransitionTy unsafe fn from_glib(value: ffi::GESVideoStandardTransitionType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::BarWipeLr, - 2 => Self::BarWipeTb, - 3 => Self::BoxWipeTl, - 4 => Self::BoxWipeTr, - 5 => Self::BoxWipeBr, - 6 => Self::BoxWipeBl, - 7 => Self::FourBoxWipeCi, - 8 => Self::FourBoxWipeCo, - 21 => Self::BarndoorV, - 22 => Self::BarndoorH, - 23 => Self::BoxWipeTc, - 24 => Self::BoxWipeRc, - 25 => Self::BoxWipeBc, - 26 => Self::BoxWipeLc, - 41 => Self::DiagonalTl, - 42 => Self::DiagonalTr, - 43 => Self::BowtieV, - 44 => Self::BowtieH, - 45 => Self::BarndoorDbl, - 46 => Self::BarndoorDtl, - 47 => Self::MiscDiagonalDbd, - 48 => Self::MiscDiagonalDd, - 61 => Self::VeeD, - 62 => Self::VeeL, - 63 => Self::VeeU, - 64 => Self::VeeR, - 65 => Self::BarnveeD, - 66 => Self::BarnveeL, - 67 => Self::BarnveeU, - 68 => Self::BarnveeR, - 101 => Self::IrisRect, - 201 => Self::ClockCw12, - 202 => Self::ClockCw3, - 203 => Self::ClockCw6, - 204 => Self::ClockCw9, - 205 => Self::PinwheelTbv, - 206 => Self::PinwheelTbh, - 207 => Self::PinwheelFb, - 211 => Self::FanCt, - 212 => Self::FanCr, - 213 => Self::DoublefanFov, - 214 => Self::DoublefanFoh, - 221 => Self::SinglesweepCwt, - 222 => Self::SinglesweepCwr, - 223 => Self::SinglesweepCwb, - 224 => Self::SinglesweepCwl, - 225 => Self::DoublesweepPv, - 226 => Self::DoublesweepPd, - 227 => Self::DoublesweepOv, - 228 => Self::DoublesweepOh, - 231 => Self::FanT, - 232 => Self::FanR, - 233 => Self::FanB, - 234 => Self::FanL, - 235 => Self::DoublefanFiv, - 236 => Self::DoublefanFih, - 241 => Self::SinglesweepCwtl, - 242 => Self::SinglesweepCwbl, - 243 => Self::SinglesweepCwbr, - 244 => Self::SinglesweepCwtr, - 245 => Self::DoublesweepPdtl, - 246 => Self::DoublesweepPdbl, - 251 => Self::SaloondoorT, - 252 => Self::SaloondoorL, - 253 => Self::SaloondoorB, - 254 => Self::SaloondoorR, - 261 => Self::WindshieldR, - 262 => Self::WindshieldU, - 263 => Self::WindshieldV, - 264 => Self::WindshieldH, - 512 => Self::Crossfade, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_NONE => Self::None, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BAR_WIPE_LR => Self::BarWipeLr, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BAR_WIPE_TB => Self::BarWipeTb, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TL => Self::BoxWipeTl, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TR => Self::BoxWipeTr, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BR => Self::BoxWipeBr, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BL => Self::BoxWipeBl, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FOUR_BOX_WIPE_CI => Self::FourBoxWipeCi, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FOUR_BOX_WIPE_CO => Self::FourBoxWipeCo, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_V => Self::BarndoorV, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_H => Self::BarndoorH, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TC => Self::BoxWipeTc, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_RC => Self::BoxWipeRc, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BC => Self::BoxWipeBc, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_LC => Self::BoxWipeLc, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DIAGONAL_TL => Self::DiagonalTl, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DIAGONAL_TR => Self::DiagonalTr, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOWTIE_V => Self::BowtieV, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOWTIE_H => Self::BowtieH, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_DBL => Self::BarndoorDbl, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_DTL => Self::BarndoorDtl, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_MISC_DIAGONAL_DBD => Self::MiscDiagonalDbd, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_MISC_DIAGONAL_DD => Self::MiscDiagonalDd, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_D => Self::VeeD, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_L => Self::VeeL, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_U => Self::VeeU, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_R => Self::VeeR, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_D => Self::BarnveeD, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_L => Self::BarnveeL, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_U => Self::BarnveeU, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_R => Self::BarnveeR, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_IRIS_RECT => Self::IrisRect, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW12 => Self::ClockCw12, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW3 => Self::ClockCw3, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW6 => Self::ClockCw6, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW9 => Self::ClockCw9, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_PINWHEEL_TBV => Self::PinwheelTbv, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_PINWHEEL_TBH => Self::PinwheelTbh, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_PINWHEEL_FB => Self::PinwheelFb, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_CT => Self::FanCt, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_CR => Self::FanCr, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FOV => Self::DoublefanFov, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FOH => Self::DoublefanFoh, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWT => Self::SinglesweepCwt, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWR => Self::SinglesweepCwr, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWB => Self::SinglesweepCwb, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWL => Self::SinglesweepCwl, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PV => Self::DoublesweepPv, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PD => Self::DoublesweepPd, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_OV => Self::DoublesweepOv, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_OH => Self::DoublesweepOh, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_T => Self::FanT, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_R => Self::FanR, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_B => Self::FanB, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_L => Self::FanL, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FIV => Self::DoublefanFiv, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FIH => Self::DoublefanFih, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWTL => Self::SinglesweepCwtl, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWBL => Self::SinglesweepCwbl, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWBR => Self::SinglesweepCwbr, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWTR => Self::SinglesweepCwtr, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PDTL => Self::DoublesweepPdtl, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PDBL => Self::DoublesweepPdbl, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_T => Self::SaloondoorT, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_L => Self::SaloondoorL, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_B => Self::SaloondoorB, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_R => Self::SaloondoorR, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_R => Self::WindshieldR, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_U => Self::WindshieldU, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_V => Self::WindshieldV, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_H => Self::WindshieldH, + ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE => Self::Crossfade, value => Self::__Unknown(value), } } diff --git a/gstreamer-editing-services/src/auto/versions.txt b/gstreamer-editing-services/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-editing-services/src/auto/versions.txt +++ b/gstreamer-editing-services/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-editing-services/sys/build.rs b/gstreamer-editing-services/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-editing-services/sys/build.rs +++ b/gstreamer-editing-services/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-editing-services/sys/src/lib.rs b/gstreamer-editing-services/sys/src/lib.rs index fd555f204..fc7f33073 100644 --- a/gstreamer-editing-services/sys/src/lib.rs +++ b/gstreamer-editing-services/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -229,7 +229,7 @@ pub union GESClipClass_ABI { impl ::std::fmt::Debug for GESClipClass_ABI { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESClipClass_ABI @ {:?}", self as *const _)) + f.debug_struct(&format!("GESClipClass_ABI @ {:p}", self)) .field("_ges_reserved", unsafe { &self._ges_reserved }) .field("abi", unsafe { &self.abi }) .finish() @@ -245,13 +245,10 @@ pub union GESTrackElementClass_ABI { impl ::std::fmt::Debug for GESTrackElementClass_ABI { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GESTrackElementClass_ABI @ {:?}", - self as *const _ - )) - .field("_ges_reserved", unsafe { &self._ges_reserved }) - .field("abi", unsafe { &self.abi }) - .finish() + f.debug_struct(&format!("GESTrackElementClass_ABI @ {:p}", self)) + .field("_ges_reserved", unsafe { &self._ges_reserved }) + .field("abi", unsafe { &self.abi }) + .finish() } } @@ -264,7 +261,7 @@ pub union GESVideoSourceClass_ABI { impl ::std::fmt::Debug for GESVideoSourceClass_ABI { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESVideoSourceClass_ABI @ {:?}", self as *const _)) + f.debug_struct(&format!("GESVideoSourceClass_ABI @ {:p}", self)) .field("_ges_reserved", unsafe { &self._ges_reserved }) .field("abi", unsafe { &self.abi }) .finish() @@ -335,7 +332,7 @@ pub struct GESAssetClass { impl ::std::fmt::Debug for GESAssetClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESAssetClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESAssetClass @ {:p}", self)) .field("parent", &self.parent) .field("start_loading", &self.start_loading) .field("extract", &self.extract) @@ -362,7 +359,7 @@ pub struct GESAudioSourceClass { impl ::std::fmt::Debug for GESAudioSourceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESAudioSourceClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESAudioSourceClass @ {:p}", self)) .field("create_source", &self.create_source) .finish() } @@ -382,7 +379,7 @@ pub struct GESAudioTestSourceClass { impl ::std::fmt::Debug for GESAudioTestSourceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESAudioTestSourceClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESAudioTestSourceClass @ {:p}", self)) .finish() } } @@ -401,7 +398,7 @@ pub struct GESAudioTrackClass { impl ::std::fmt::Debug for GESAudioTrackClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESAudioTrackClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESAudioTrackClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("_ges_reserved", &self._ges_reserved) .finish() @@ -422,7 +419,7 @@ pub struct GESAudioTransitionClass { impl ::std::fmt::Debug for GESAudioTransitionClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESAudioTransitionClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESAudioTransitionClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("_ges_reserved", &self._ges_reserved) .finish() @@ -443,7 +440,7 @@ pub struct GESAudioUriSourceClass { impl ::std::fmt::Debug for GESAudioUriSourceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESAudioUriSourceClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESAudioUriSourceClass @ {:p}", self)) .finish() } } @@ -462,7 +459,7 @@ pub struct GESBaseEffectClass { impl ::std::fmt::Debug for GESBaseEffectClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESBaseEffectClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESBaseEffectClass @ {:p}", self)) .finish() } } @@ -476,7 +473,7 @@ pub struct GESBaseEffectClipClass { impl ::std::fmt::Debug for GESBaseEffectClipClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESBaseEffectClipClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESBaseEffectClipClass @ {:p}", self)) .finish() } } @@ -500,11 +497,8 @@ pub struct GESBaseTransitionClipClass { impl ::std::fmt::Debug for GESBaseTransitionClipClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GESBaseTransitionClipClass @ {:?}", - self as *const _ - )) - .finish() + f.debug_struct(&format!("GESBaseTransitionClipClass @ {:p}", self)) + .finish() } } @@ -530,15 +524,12 @@ pub struct GESBaseXmlFormatterClass { impl ::std::fmt::Debug for GESBaseXmlFormatterClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GESBaseXmlFormatterClass @ {:?}", - self as *const _ - )) - .field("parent", &self.parent) - .field("content_parser", &self.content_parser) - .field("save", &self.save) - .field("_ges_reserved", &self._ges_reserved) - .finish() + f.debug_struct(&format!("GESBaseXmlFormatterClass @ {:p}", self)) + .field("parent", &self.parent) + .field("content_parser", &self.content_parser) + .field("save", &self.save) + .field("_ges_reserved", &self._ges_reserved) + .finish() } } @@ -558,7 +549,7 @@ pub struct GESClipAssetClass { impl ::std::fmt::Debug for GESClipAssetClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESClipAssetClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESClipAssetClass @ {:p}", self)) .field("parent", &self.parent) .field("get_natural_framerate", &self.get_natural_framerate) .field("_ges_reserved", &self._ges_reserved) @@ -582,7 +573,7 @@ pub struct GESClipClass { impl ::std::fmt::Debug for GESClipClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESClipClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESClipClass @ {:p}", self)) .field("create_track_element", &self.create_track_element) .field("create_track_elements", &self.create_track_elements) .field("ABI", &self.ABI) @@ -598,7 +589,7 @@ pub struct GESClipClass_ABI_abi { impl ::std::fmt::Debug for GESClipClass_ABI_abi { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESClipClass_ABI_abi @ {:?}", self as *const _)) + f.debug_struct(&format!("GESClipClass_ABI_abi @ {:p}", self)) .field("can_add_effects", &self.can_add_effects) .finish() } @@ -617,12 +608,9 @@ pub struct GESCommandLineFormatterClass { impl ::std::fmt::Debug for GESCommandLineFormatterClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GESCommandLineFormatterClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .finish() + f.debug_struct(&format!("GESCommandLineFormatterClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .finish() } } @@ -659,7 +647,7 @@ pub struct GESContainerClass { impl ::std::fmt::Debug for GESContainerClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESContainerClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESContainerClass @ {:p}", self)) .field("child_added", &self.child_added) .field("child_removed", &self.child_removed) .field("add_child", &self.add_child) @@ -685,7 +673,7 @@ pub struct GESEffectAssetClass { impl ::std::fmt::Debug for GESEffectAssetClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESEffectAssetClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESEffectAssetClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("_ges_reserved", &self._ges_reserved) .finish() @@ -707,7 +695,7 @@ pub struct GESEffectClass { impl ::std::fmt::Debug for GESEffectClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESEffectClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESEffectClass @ {:p}", self)) .finish() } } @@ -721,7 +709,7 @@ pub struct GESEffectClipClass { impl ::std::fmt::Debug for GESEffectClipClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESEffectClipClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESEffectClipClass @ {:p}", self)) .finish() } } @@ -762,7 +750,7 @@ pub struct GESExtractableInterface { impl ::std::fmt::Debug for GESExtractableInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESExtractableInterface @ {:?}", self as *const _)) + f.debug_struct(&format!("GESExtractableInterface @ {:p}", self)) .field("parent", &self.parent) .field("asset_type", &self.asset_type) .field("check_id", &self.check_id) @@ -796,7 +784,7 @@ pub struct GESFormatterClass { impl ::std::fmt::Debug for GESFormatterClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESFormatterClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESFormatterClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("can_load_uri", &self.can_load_uri) .field("load_from_uri", &self.load_from_uri) @@ -819,7 +807,7 @@ pub struct GESGroupClass { impl ::std::fmt::Debug for GESGroupClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESGroupClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESGroupClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("_ges_reserved", &self._ges_reserved) .finish() @@ -840,7 +828,7 @@ pub struct GESImageSourceClass { impl ::std::fmt::Debug for GESImageSourceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESImageSourceClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESImageSourceClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("_ges_reserved", &self._ges_reserved) .finish() @@ -864,7 +852,7 @@ pub struct GESLayerClass { impl ::std::fmt::Debug for GESLayerClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESLayerClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESLayerClass @ {:p}", self)) .field("get_objects", &self.get_objects) .field("object_added", &self.object_added) .field("object_removed", &self.object_removed) @@ -885,7 +873,7 @@ pub struct GESMarkerClass { impl ::std::fmt::Debug for GESMarkerClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESMarkerClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESMarkerClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -899,7 +887,7 @@ pub struct GESMarkerListClass { impl ::std::fmt::Debug for GESMarkerListClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESMarkerListClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESMarkerListClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -914,13 +902,10 @@ pub struct GESMetaContainerInterface { impl ::std::fmt::Debug for GESMetaContainerInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GESMetaContainerInterface @ {:?}", - self as *const _ - )) - .field("parent_iface", &self.parent_iface) - .field("_ges_reserved", &self._ges_reserved) - .finish() + f.debug_struct(&format!("GESMetaContainerInterface @ {:p}", self)) + .field("parent_iface", &self.parent_iface) + .field("_ges_reserved", &self._ges_reserved) + .finish() } } @@ -933,7 +918,7 @@ pub struct GESMultiFileSourceClass { impl ::std::fmt::Debug for GESMultiFileSourceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESMultiFileSourceClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESMultiFileSourceClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("_ges_reserved", &self._ges_reserved) .finish() @@ -954,7 +939,7 @@ pub struct GESOperationClass { impl ::std::fmt::Debug for GESOperationClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESOperationClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESOperationClass @ {:p}", self)) .finish() } } @@ -968,7 +953,7 @@ pub struct GESOperationClipClass { impl ::std::fmt::Debug for GESOperationClipClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESOperationClipClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESOperationClipClass @ {:p}", self)) .finish() } } @@ -992,7 +977,7 @@ pub struct GESOverlayClipClass { impl ::std::fmt::Debug for GESOverlayClipClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESOverlayClipClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESOverlayClipClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -1012,7 +997,7 @@ pub struct GESPipelineClass { impl ::std::fmt::Debug for GESPipelineClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESPipelineClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESPipelineClass @ {:p}", self)) .finish() } } @@ -1031,7 +1016,7 @@ pub struct GESPitiviFormatterClass { impl ::std::fmt::Debug for GESPitiviFormatterClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESPitiviFormatterClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESPitiviFormatterClass @ {:p}", self)) .finish() } } @@ -1061,7 +1046,7 @@ pub struct GESProjectClass { impl ::std::fmt::Debug for GESProjectClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESProjectClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESProjectClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("asset_added", &self.asset_added) .field("asset_loading", &self.asset_loading) @@ -1089,7 +1074,7 @@ pub struct GESSourceClass { impl ::std::fmt::Debug for GESSourceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESSourceClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESSourceClass @ {:p}", self)) .finish() } } @@ -1102,7 +1087,7 @@ pub struct GESSourceClipAssetClass { impl ::std::fmt::Debug for GESSourceClipAssetClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESSourceClipAssetClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESSourceClipAssetClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -1117,7 +1102,7 @@ pub struct GESSourceClipClass { impl ::std::fmt::Debug for GESSourceClipClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESSourceClipClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESSourceClipClass @ {:p}", self)) .finish() } } @@ -1141,7 +1126,7 @@ pub struct GESTestClipClass { impl ::std::fmt::Debug for GESTestClipClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTestClipClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTestClipClass @ {:p}", self)) .finish() } } @@ -1160,7 +1145,7 @@ pub struct GESTextOverlayClass { impl ::std::fmt::Debug for GESTextOverlayClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTextOverlayClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTextOverlayClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -1175,7 +1160,7 @@ pub struct GESTextOverlayClipClass { impl ::std::fmt::Debug for GESTextOverlayClipClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTextOverlayClipClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTextOverlayClipClass @ {:p}", self)) .finish() } } @@ -1206,7 +1191,7 @@ pub struct GESTimelineClass { impl ::std::fmt::Debug for GESTimelineClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTimelineClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTimelineClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("track_added", &self.track_added) .field("track_removed", &self.track_removed) @@ -1283,7 +1268,7 @@ pub struct GESTimelineElementClass { impl ::std::fmt::Debug for GESTimelineElementClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTimelineElementClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTimelineElementClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("set_parent", &self.set_parent) .field("set_start", &self.set_start) @@ -1329,7 +1314,7 @@ pub struct GESTitleClipClass { impl ::std::fmt::Debug for GESTitleClipClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTitleClipClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTitleClipClass @ {:p}", self)) .finish() } } @@ -1348,7 +1333,7 @@ pub struct GESTitleSourceClass { impl ::std::fmt::Debug for GESTitleSourceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTitleSourceClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTitleSourceClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -1369,7 +1354,7 @@ pub struct GESTrackClass { impl ::std::fmt::Debug for GESTrackClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTrackClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTrackClass @ {:p}", self)) .field("get_mixing_element", &self.get_mixing_element) .finish() } @@ -1386,14 +1371,11 @@ pub struct GESTrackElementAssetClass { impl ::std::fmt::Debug for GESTrackElementAssetClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GESTrackElementAssetClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .field("get_natural_framerate", &self.get_natural_framerate) - .field("_ges_reserved", &self._ges_reserved) - .finish() + f.debug_struct(&format!("GESTrackElementAssetClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .field("get_natural_framerate", &self.get_natural_framerate) + .field("_ges_reserved", &self._ges_reserved) + .finish() } } @@ -1428,7 +1410,7 @@ pub struct GESTrackElementClass { impl ::std::fmt::Debug for GESTrackElementClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTrackElementClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTrackElementClass @ {:p}", self)) .field("nleobject_factorytype", &self.nleobject_factorytype) .field("create_gnl_object", &self.create_gnl_object) .field("create_element", &self.create_element) @@ -1450,16 +1432,13 @@ pub struct GESTrackElementClass_ABI_abi { impl ::std::fmt::Debug for GESTrackElementClass_ABI_abi { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GESTrackElementClass_ABI_abi @ {:?}", - self as *const _ - )) - .field( - "default_has_internal_source", - &self.default_has_internal_source, - ) - .field("default_track_type", &self.default_track_type) - .finish() + f.debug_struct(&format!("GESTrackElementClass_ABI_abi @ {:p}", self)) + .field( + "default_has_internal_source", + &self.default_has_internal_source, + ) + .field("default_track_type", &self.default_track_type) + .finish() } } @@ -1482,7 +1461,7 @@ pub struct GESTransitionClass { impl ::std::fmt::Debug for GESTransitionClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTransitionClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTransitionClass @ {:p}", self)) .finish() } } @@ -1496,7 +1475,7 @@ pub struct GESTransitionClipClass { impl ::std::fmt::Debug for GESTransitionClipClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTransitionClipClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTransitionClipClass @ {:p}", self)) .finish() } } @@ -1530,7 +1509,7 @@ pub struct GESUriClipAssetClass { impl ::std::fmt::Debug for GESUriClipAssetClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESUriClipAssetClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESUriClipAssetClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("discovered", &self.discovered) .finish() @@ -1551,7 +1530,7 @@ pub struct GESUriClipClass { impl ::std::fmt::Debug for GESUriClipClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESUriClipClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESUriClipClass @ {:p}", self)) .finish() } } @@ -1575,7 +1554,7 @@ pub struct GESUriSourceAssetClass { impl ::std::fmt::Debug for GESUriSourceAssetClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESUriSourceAssetClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESUriSourceAssetClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("_ges_reserved", &self._ges_reserved) .finish() @@ -1597,7 +1576,7 @@ pub struct GESVideoSourceClass { impl ::std::fmt::Debug for GESVideoSourceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESVideoSourceClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESVideoSourceClass @ {:p}", self)) .field("create_source", &self.create_source) .field("ABI", &self.ABI) .finish() @@ -1618,18 +1597,15 @@ pub struct GESVideoSourceClass_ABI_abi { impl ::std::fmt::Debug for GESVideoSourceClass_ABI_abi { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GESVideoSourceClass_ABI_abi @ {:?}", - self as *const _ - )) - .field( - "disable_scale_in_compositor", - &self.disable_scale_in_compositor, - ) - .field("needs_converters", &self.needs_converters) - .field("get_natural_size", &self.get_natural_size) - .field("create_filters", &self.create_filters) - .finish() + f.debug_struct(&format!("GESVideoSourceClass_ABI_abi @ {:p}", self)) + .field( + "disable_scale_in_compositor", + &self.disable_scale_in_compositor, + ) + .field("needs_converters", &self.needs_converters) + .field("get_natural_size", &self.get_natural_size) + .field("create_filters", &self.create_filters) + .finish() } } @@ -1647,7 +1623,7 @@ pub struct GESVideoTestSourceClass { impl ::std::fmt::Debug for GESVideoTestSourceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESVideoTestSourceClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESVideoTestSourceClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("_ges_reserved", &self._ges_reserved) .finish() @@ -1668,7 +1644,7 @@ pub struct GESVideoTrackClass { impl ::std::fmt::Debug for GESVideoTrackClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESVideoTrackClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESVideoTrackClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("_ges_reserved", &self._ges_reserved) .finish() @@ -1689,7 +1665,7 @@ pub struct GESVideoTransitionClass { impl ::std::fmt::Debug for GESVideoTransitionClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESVideoTransitionClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESVideoTransitionClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -1709,7 +1685,7 @@ pub struct GESVideoUriSourceClass { impl ::std::fmt::Debug for GESVideoUriSourceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESVideoUriSourceClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESVideoUriSourceClass @ {:p}", self)) .finish() } } @@ -1728,7 +1704,7 @@ pub struct GESXmlFormatterClass { impl ::std::fmt::Debug for GESXmlFormatterClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESXmlFormatterClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GESXmlFormatterClass @ {:p}", self)) .field("parent", &self.parent) .field("_ges_reserved", &self._ges_reserved) .finish() @@ -1751,7 +1727,7 @@ pub struct GESAsset { impl ::std::fmt::Debug for GESAsset { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESAsset @ {:?}", self as *const _)) + f.debug_struct(&format!("GESAsset @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1767,7 +1743,7 @@ pub struct GESAudioSource { impl ::std::fmt::Debug for GESAudioSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESAudioSource @ {:?}", self as *const _)) + f.debug_struct(&format!("GESAudioSource @ {:p}", self)) .finish() } } @@ -1782,7 +1758,7 @@ pub struct GESAudioTestSource { impl ::std::fmt::Debug for GESAudioTestSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESAudioTestSource @ {:?}", self as *const _)) + f.debug_struct(&format!("GESAudioTestSource @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1798,7 +1774,7 @@ pub struct GESAudioTrack { impl ::std::fmt::Debug for GESAudioTrack { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESAudioTrack @ {:?}", self as *const _)) + f.debug_struct(&format!("GESAudioTrack @ {:p}", self)) .field("parent_instance", &self.parent_instance) .finish() } @@ -1814,7 +1790,7 @@ pub struct GESAudioTransition { impl ::std::fmt::Debug for GESAudioTransition { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESAudioTransition @ {:?}", self as *const _)) + f.debug_struct(&format!("GESAudioTransition @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1831,7 +1807,7 @@ pub struct GESAudioUriSource { impl ::std::fmt::Debug for GESAudioUriSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESAudioUriSource @ {:?}", self as *const _)) + f.debug_struct(&format!("GESAudioUriSource @ {:p}", self)) .finish() } } @@ -1846,7 +1822,7 @@ pub struct GESBaseEffect { impl ::std::fmt::Debug for GESBaseEffect { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESBaseEffect @ {:?}", self as *const _)) + f.debug_struct(&format!("GESBaseEffect @ {:p}", self)) .finish() } } @@ -1861,7 +1837,7 @@ pub struct GESBaseEffectClip { impl ::std::fmt::Debug for GESBaseEffectClip { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESBaseEffectClip @ {:?}", self as *const _)) + f.debug_struct(&format!("GESBaseEffectClip @ {:p}", self)) .finish() } } @@ -1876,7 +1852,7 @@ pub struct GESBaseTransitionClip { impl ::std::fmt::Debug for GESBaseTransitionClip { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESBaseTransitionClip @ {:?}", self as *const _)) + f.debug_struct(&format!("GESBaseTransitionClip @ {:p}", self)) .finish() } } @@ -1892,7 +1868,7 @@ pub struct GESBaseXmlFormatter { impl ::std::fmt::Debug for GESBaseXmlFormatter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESBaseXmlFormatter @ {:?}", self as *const _)) + f.debug_struct(&format!("GESBaseXmlFormatter @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1908,7 +1884,7 @@ pub struct GESClip { impl ::std::fmt::Debug for GESClip { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESClip @ {:?}", self as *const _)) + f.debug_struct(&format!("GESClip @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1924,7 +1900,7 @@ pub struct GESClipAsset { impl ::std::fmt::Debug for GESClipAsset { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESClipAsset @ {:?}", self as *const _)) + f.debug_struct(&format!("GESClipAsset @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1939,7 +1915,7 @@ pub struct GESCommandLineFormatter { impl ::std::fmt::Debug for GESCommandLineFormatter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESCommandLineFormatter @ {:?}", self as *const _)) + f.debug_struct(&format!("GESCommandLineFormatter @ {:p}", self)) .field("parent_instance", &self.parent_instance) .field("priv_", &self.priv_) .finish() @@ -1960,7 +1936,7 @@ pub struct GESContainer { impl ::std::fmt::Debug for GESContainer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESContainer @ {:?}", self as *const _)) + f.debug_struct(&format!("GESContainer @ {:p}", self)) .field("parent", &self.parent) .field("children", &self.children) .field("height", &self.height) @@ -1980,8 +1956,7 @@ pub struct GESEffect { impl ::std::fmt::Debug for GESEffect { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESEffect @ {:?}", self as *const _)) - .finish() + f.debug_struct(&format!("GESEffect @ {:p}", self)).finish() } } @@ -1995,7 +1970,7 @@ pub struct GESEffectAsset { impl ::std::fmt::Debug for GESEffectAsset { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESEffectAsset @ {:?}", self as *const _)) + f.debug_struct(&format!("GESEffectAsset @ {:p}", self)) .field("parent_instance", &self.parent_instance) .field("priv_", &self.priv_) .field("_ges_reserved", &self._ges_reserved) @@ -2013,7 +1988,7 @@ pub struct GESEffectClip { impl ::std::fmt::Debug for GESEffectClip { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESEffectClip @ {:?}", self as *const _)) + f.debug_struct(&format!("GESEffectClip @ {:p}", self)) .finish() } } @@ -2030,7 +2005,7 @@ pub struct GESFormatter { impl ::std::fmt::Debug for GESFormatter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESFormatter @ {:?}", self as *const _)) + f.debug_struct(&format!("GESFormatter @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2046,7 +2021,7 @@ pub struct GESGroup { impl ::std::fmt::Debug for GESGroup { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESGroup @ {:?}", self as *const _)) + f.debug_struct(&format!("GESGroup @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2063,7 +2038,7 @@ pub struct GESImageSource { impl ::std::fmt::Debug for GESImageSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESImageSource @ {:?}", self as *const _)) + f.debug_struct(&format!("GESImageSource @ {:p}", self)) .finish() } } @@ -2081,7 +2056,7 @@ pub struct GESLayer { impl ::std::fmt::Debug for GESLayer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESLayer @ {:?}", self as *const _)) + f.debug_struct(&format!("GESLayer @ {:p}", self)) .field("parent", &self.parent) .field("timeline", &self.timeline) .field("min_nle_priority", &self.min_nle_priority) @@ -2097,8 +2072,7 @@ pub struct GESMarker(c_void); impl ::std::fmt::Debug for GESMarker { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESMarker @ {:?}", self as *const _)) - .finish() + f.debug_struct(&format!("GESMarker @ {:p}", self)).finish() } } @@ -2107,7 +2081,7 @@ pub struct GESMarkerList(c_void); impl ::std::fmt::Debug for GESMarkerList { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESMarkerList @ {:?}", self as *const _)) + f.debug_struct(&format!("GESMarkerList @ {:p}", self)) .finish() } } @@ -2123,7 +2097,7 @@ pub struct GESMultiFileSource { impl ::std::fmt::Debug for GESMultiFileSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESMultiFileSource @ {:?}", self as *const _)) + f.debug_struct(&format!("GESMultiFileSource @ {:p}", self)) .finish() } } @@ -2138,7 +2112,7 @@ pub struct GESOperation { impl ::std::fmt::Debug for GESOperation { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESOperation @ {:?}", self as *const _)) + f.debug_struct(&format!("GESOperation @ {:p}", self)) .finish() } } @@ -2153,7 +2127,7 @@ pub struct GESOperationClip { impl ::std::fmt::Debug for GESOperationClip { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESOperationClip @ {:?}", self as *const _)) + f.debug_struct(&format!("GESOperationClip @ {:p}", self)) .finish() } } @@ -2168,7 +2142,7 @@ pub struct GESOverlayClip { impl ::std::fmt::Debug for GESOverlayClip { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESOverlayClip @ {:?}", self as *const _)) + f.debug_struct(&format!("GESOverlayClip @ {:p}", self)) .finish() } } @@ -2183,7 +2157,7 @@ pub struct GESPipeline { impl ::std::fmt::Debug for GESPipeline { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESPipeline @ {:?}", self as *const _)) + f.debug_struct(&format!("GESPipeline @ {:p}", self)) .finish() } } @@ -2198,7 +2172,7 @@ pub struct GESPitiviFormatter { impl ::std::fmt::Debug for GESPitiviFormatter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESPitiviFormatter @ {:?}", self as *const _)) + f.debug_struct(&format!("GESPitiviFormatter @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2214,7 +2188,7 @@ pub struct GESProject { impl ::std::fmt::Debug for GESProject { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESProject @ {:?}", self as *const _)) + f.debug_struct(&format!("GESProject @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2230,8 +2204,7 @@ pub struct GESSource { impl ::std::fmt::Debug for GESSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESSource @ {:?}", self as *const _)) - .finish() + f.debug_struct(&format!("GESSource @ {:p}", self)).finish() } } @@ -2245,7 +2218,7 @@ pub struct GESSourceClip { impl ::std::fmt::Debug for GESSourceClip { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESSourceClip @ {:?}", self as *const _)) + f.debug_struct(&format!("GESSourceClip @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2259,7 +2232,7 @@ pub struct GESSourceClipAsset { impl ::std::fmt::Debug for GESSourceClipAsset { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESSourceClipAsset @ {:?}", self as *const _)) + f.debug_struct(&format!("GESSourceClipAsset @ {:p}", self)) .field("parent_instance", &self.parent_instance) .finish() } @@ -2275,7 +2248,7 @@ pub struct GESTestClip { impl ::std::fmt::Debug for GESTestClip { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTestClip @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTestClip @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2291,7 +2264,7 @@ pub struct GESTextOverlay { impl ::std::fmt::Debug for GESTextOverlay { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTextOverlay @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTextOverlay @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2307,7 +2280,7 @@ pub struct GESTextOverlayClip { impl ::std::fmt::Debug for GESTextOverlayClip { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTextOverlayClip @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTextOverlayClip @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2325,7 +2298,7 @@ pub struct GESTimeline { impl ::std::fmt::Debug for GESTimeline { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTimeline @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTimeline @ {:p}", self)) .field("parent", &self.parent) .field("layers", &self.layers) .field("tracks", &self.tracks) @@ -2352,7 +2325,7 @@ pub struct GESTimelineElement { impl ::std::fmt::Debug for GESTimelineElement { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTimelineElement @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTimelineElement @ {:p}", self)) .field("parent_instance", &self.parent_instance) .field("parent", &self.parent) .field("asset", &self.asset) @@ -2377,7 +2350,7 @@ pub struct GESTitleClip { impl ::std::fmt::Debug for GESTitleClip { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTitleClip @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTitleClip @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2393,7 +2366,7 @@ pub struct GESTitleSource { impl ::std::fmt::Debug for GESTitleSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTitleSource @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTitleSource @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2410,7 +2383,7 @@ pub struct GESTrack { impl ::std::fmt::Debug for GESTrack { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTrack @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTrack @ {:p}", self)) .field("parent", &self.parent) .field("type_", &self.type_) .finish() @@ -2429,7 +2402,7 @@ pub struct GESTrackElement { impl ::std::fmt::Debug for GESTrackElement { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTrackElement @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTrackElement @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2445,7 +2418,7 @@ pub struct GESTrackElementAsset { impl ::std::fmt::Debug for GESTrackElementAsset { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTrackElementAsset @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTrackElementAsset @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2461,7 +2434,7 @@ pub struct GESTransition { impl ::std::fmt::Debug for GESTransition { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTransition @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTransition @ {:p}", self)) .finish() } } @@ -2477,7 +2450,7 @@ pub struct GESTransitionClip { impl ::std::fmt::Debug for GESTransitionClip { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESTransitionClip @ {:?}", self as *const _)) + f.debug_struct(&format!("GESTransitionClip @ {:p}", self)) .field("vtype", &self.vtype) .finish() } @@ -2493,7 +2466,7 @@ pub struct GESUriClip { impl ::std::fmt::Debug for GESUriClip { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESUriClip @ {:?}", self as *const _)) + f.debug_struct(&format!("GESUriClip @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2509,7 +2482,7 @@ pub struct GESUriClipAsset { impl ::std::fmt::Debug for GESUriClipAsset { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESUriClipAsset @ {:?}", self as *const _)) + f.debug_struct(&format!("GESUriClipAsset @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2525,7 +2498,7 @@ pub struct GESUriSourceAsset { impl ::std::fmt::Debug for GESUriSourceAsset { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESUriSourceAsset @ {:?}", self as *const _)) + f.debug_struct(&format!("GESUriSourceAsset @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2541,7 +2514,7 @@ pub struct GESVideoSource { impl ::std::fmt::Debug for GESVideoSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESVideoSource @ {:?}", self as *const _)) + f.debug_struct(&format!("GESVideoSource @ {:p}", self)) .finish() } } @@ -2556,7 +2529,7 @@ pub struct GESVideoTestSource { impl ::std::fmt::Debug for GESVideoTestSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESVideoTestSource @ {:?}", self as *const _)) + f.debug_struct(&format!("GESVideoTestSource @ {:p}", self)) .finish() } } @@ -2571,7 +2544,7 @@ pub struct GESVideoTrack { impl ::std::fmt::Debug for GESVideoTrack { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESVideoTrack @ {:?}", self as *const _)) + f.debug_struct(&format!("GESVideoTrack @ {:p}", self)) .field("parent_instance", &self.parent_instance) .finish() } @@ -2587,7 +2560,7 @@ pub struct GESVideoTransition { impl ::std::fmt::Debug for GESVideoTransition { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESVideoTransition @ {:?}", self as *const _)) + f.debug_struct(&format!("GESVideoTransition @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2604,7 +2577,7 @@ pub struct GESVideoUriSource { impl ::std::fmt::Debug for GESVideoUriSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESVideoUriSource @ {:?}", self as *const _)) + f.debug_struct(&format!("GESVideoUriSource @ {:p}", self)) .finish() } } @@ -2619,7 +2592,7 @@ pub struct GESXmlFormatter { impl ::std::fmt::Debug for GESXmlFormatter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GESXmlFormatter @ {:?}", self as *const _)) + f.debug_struct(&format!("GESXmlFormatter @ {:p}", self)) .field("parent", &self.parent) .field("priv_", &self.priv_) .field("_ges_reserved", &self._ges_reserved) @@ -2633,7 +2606,7 @@ pub struct GESExtractable(c_void); impl ::std::fmt::Debug for GESExtractable { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GESExtractable @ {:?}", self as *const _) + write!(f, "GESExtractable @ {:p}", self) } } @@ -2642,7 +2615,7 @@ pub struct GESMetaContainer(c_void); impl ::std::fmt::Debug for GESMetaContainer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GESMetaContainer @ {:?}", self as *const _) + write!(f, "GESMetaContainer @ {:p}", self) } } diff --git a/gstreamer-editing-services/sys/tests/abi.rs b/gstreamer-editing-services/sys/tests/abi.rs index aa9ce5b51..cdfd76d17 100644 --- a/gstreamer-editing-services/sys/tests/abi.rs +++ b/gstreamer-editing-services/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-editing-services/sys/tests/constant.c b/gstreamer-editing-services/sys/tests/constant.c index 519155767..dbf36ae30 100644 --- a/gstreamer-editing-services/sys/tests/constant.c +++ b/gstreamer-editing-services/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-editing-services/sys/tests/layout.c b/gstreamer-editing-services/sys/tests/layout.c index 70ce76ad8..995a93ca9 100644 --- a/gstreamer-editing-services/sys/tests/layout.c +++ b/gstreamer-editing-services/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/egl/src/auto/versions.txt b/gstreamer-gl/egl/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-gl/egl/src/auto/versions.txt +++ b/gstreamer-gl/egl/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-gl/egl/sys/build.rs b/gstreamer-gl/egl/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-gl/egl/sys/build.rs +++ b/gstreamer-gl/egl/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/egl/sys/src/lib.rs b/gstreamer-gl/egl/sys/src/lib.rs index c193db4e0..f4b696c2d 100644 --- a/gstreamer-gl/egl/sys/src/lib.rs +++ b/gstreamer-gl/egl/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -38,7 +38,7 @@ pub struct GstGLDisplayEGLClass { impl ::std::fmt::Debug for GstGLDisplayEGLClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLDisplayEGLClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLDisplayEGLClass @ {:p}", self)) .field("object_class", &self.object_class) .field("_padding", &self._padding) .finish() @@ -57,7 +57,7 @@ pub struct GstGLDisplayEGL { impl ::std::fmt::Debug for GstGLDisplayEGL { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLDisplayEGL @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLDisplayEGL @ {:p}", self)) .field("parent", &self.parent) .finish() } diff --git a/gstreamer-gl/egl/sys/tests/abi.rs b/gstreamer-gl/egl/sys/tests/abi.rs index 0c6ec1cb6..e45645de7 100644 --- a/gstreamer-gl/egl/sys/tests/abi.rs +++ b/gstreamer-gl/egl/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/egl/sys/tests/constant.c b/gstreamer-gl/egl/sys/tests/constant.c index 91899ad7a..9d220fcca 100644 --- a/gstreamer-gl/egl/sys/tests/constant.c +++ b/gstreamer-gl/egl/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/egl/sys/tests/layout.c b/gstreamer-gl/egl/sys/tests/layout.c index d4730fe6a..15af8e149 100644 --- a/gstreamer-gl/egl/sys/tests/layout.c +++ b/gstreamer-gl/egl/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/src/auto/enums.rs b/gstreamer-gl/src/auto/enums.rs index a198f0a0b..20aa5f88d 100644 --- a/gstreamer-gl/src/auto/enums.rs +++ b/gstreamer-gl/src/auto/enums.rs @@ -57,12 +57,12 @@ impl FromGlib for GLContextError { unsafe fn from_glib(value: ffi::GstGLContextError) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Failed, - 1 => Self::WrongConfig, - 2 => Self::WrongApi, - 3 => Self::OldLibs, - 4 => Self::CreateContext, - 5 => Self::ResourceUnavailable, + ffi::GST_GL_CONTEXT_ERROR_FAILED => Self::Failed, + ffi::GST_GL_CONTEXT_ERROR_WRONG_CONFIG => Self::WrongConfig, + ffi::GST_GL_CONTEXT_ERROR_WRONG_API => Self::WrongApi, + ffi::GST_GL_CONTEXT_ERROR_OLD_LIBS => Self::OldLibs, + ffi::GST_GL_CONTEXT_ERROR_CREATE_CONTEXT => Self::CreateContext, + ffi::GST_GL_CONTEXT_ERROR_RESOURCE_UNAVAILABLE => Self::ResourceUnavailable, value => Self::__Unknown(value), } } @@ -82,12 +82,12 @@ impl ErrorDomain for GLContextError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 0 => Some(Self::Failed), - 1 => Some(Self::WrongConfig), - 2 => Some(Self::WrongApi), - 3 => Some(Self::OldLibs), - 4 => Some(Self::CreateContext), - 5 => Some(Self::ResourceUnavailable), + ffi::GST_GL_CONTEXT_ERROR_FAILED => Some(Self::Failed), + ffi::GST_GL_CONTEXT_ERROR_WRONG_CONFIG => Some(Self::WrongConfig), + ffi::GST_GL_CONTEXT_ERROR_WRONG_API => Some(Self::WrongApi), + ffi::GST_GL_CONTEXT_ERROR_OLD_LIBS => Some(Self::OldLibs), + ffi::GST_GL_CONTEXT_ERROR_CREATE_CONTEXT => Some(Self::CreateContext), + ffi::GST_GL_CONTEXT_ERROR_RESOURCE_UNAVAILABLE => Some(Self::ResourceUnavailable), _ => Some(Self::Failed), } } @@ -263,25 +263,25 @@ impl FromGlib for GLFormat { unsafe fn from_glib(value: ffi::GstGLFormat) -> Self { skip_assert_initialized!(); match value { - 6409 => Self::Luminance, - 6406 => Self::Alpha, - 6410 => Self::LuminanceAlpha, - 6403 => Self::Red, - 33321 => Self::R8, - 33319 => Self::Rg, - 33323 => Self::Rg8, - 6407 => Self::Rgb, - 32849 => Self::Rgb8, - 36194 => Self::Rgb565, - 32852 => Self::Rgb16, - 6408 => Self::Rgba, - 32856 => Self::Rgba8, - 32859 => Self::Rgba16, - 33189 => Self::DepthComponent16, - 35056 => Self::Depth24Stencil8, - 32857 => Self::Rgb10A2, - 33322 => Self::R16, - 33324 => Self::Rg16, + ffi::GST_GL_LUMINANCE => Self::Luminance, + ffi::GST_GL_ALPHA => Self::Alpha, + ffi::GST_GL_LUMINANCE_ALPHA => Self::LuminanceAlpha, + ffi::GST_GL_RED => Self::Red, + ffi::GST_GL_R8 => Self::R8, + ffi::GST_GL_RG => Self::Rg, + ffi::GST_GL_RG8 => Self::Rg8, + ffi::GST_GL_RGB => Self::Rgb, + ffi::GST_GL_RGB8 => Self::Rgb8, + ffi::GST_GL_RGB565 => Self::Rgb565, + ffi::GST_GL_RGB16 => Self::Rgb16, + ffi::GST_GL_RGBA => Self::Rgba, + ffi::GST_GL_RGBA8 => Self::Rgba8, + ffi::GST_GL_RGBA16 => Self::Rgba16, + ffi::GST_GL_DEPTH_COMPONENT16 => Self::DepthComponent16, + ffi::GST_GL_DEPTH24_STENCIL8 => Self::Depth24Stencil8, + ffi::GST_GL_RGB10_A2 => Self::Rgb10A2, + ffi::GST_GL_R16 => Self::R16, + ffi::GST_GL_RG16 => Self::Rg16, value => Self::__Unknown(value), } } @@ -353,9 +353,9 @@ impl FromGlib for GLQueryType { unsafe fn from_glib(value: ffi::GstGLQueryType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::TimeElapsed, - 2 => Self::Timestamp, + ffi::GST_GL_QUERY_NONE => Self::None, + ffi::GST_GL_QUERY_TIME_ELAPSED => Self::TimeElapsed, + ffi::GST_GL_QUERY_TIMESTAMP => Self::Timestamp, value => Self::__Unknown(value), } } @@ -427,9 +427,9 @@ impl FromGlib for GLSLError { unsafe fn from_glib(value: ffi::GstGLSLError) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Compile, - 1 => Self::Link, - 2 => Self::Program, + ffi::GST_GLSL_ERROR_COMPILE => Self::Compile, + ffi::GST_GLSL_ERROR_LINK => Self::Link, + ffi::GST_GLSL_ERROR_PROGRAM => Self::Program, value => Self::__Unknown(value), } } @@ -449,9 +449,9 @@ impl ErrorDomain for GLSLError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 0 => Some(Self::Compile), - 1 => Some(Self::Link), - 2 => Some(Self::Program), + ffi::GST_GLSL_ERROR_COMPILE => Some(Self::Compile), + ffi::GST_GLSL_ERROR_LINK => Some(Self::Link), + ffi::GST_GLSL_ERROR_PROGRAM => Some(Self::Program), value => Some(Self::__Unknown(value)), } } @@ -612,23 +612,23 @@ impl FromGlib for GLSLVersion { unsafe fn from_glib(value: ffi::GstGLSLVersion) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 100 => Self::_100, - 110 => Self::_110, - 120 => Self::_120, - 130 => Self::_130, - 140 => Self::_140, - 150 => Self::_150, - 300 => Self::_300, - 310 => Self::_310, - 320 => Self::_320, - 330 => Self::_330, - 400 => Self::_400, - 410 => Self::_410, - 420 => Self::_420, - 430 => Self::_430, - 440 => Self::_440, - 450 => Self::_450, + ffi::GST_GLSL_VERSION_NONE => Self::None, + ffi::GST_GLSL_VERSION_100 => Self::_100, + ffi::GST_GLSL_VERSION_110 => Self::_110, + ffi::GST_GLSL_VERSION_120 => Self::_120, + ffi::GST_GLSL_VERSION_130 => Self::_130, + ffi::GST_GLSL_VERSION_140 => Self::_140, + ffi::GST_GLSL_VERSION_150 => Self::_150, + ffi::GST_GLSL_VERSION_300 => Self::_300, + ffi::GST_GLSL_VERSION_310 => Self::_310, + ffi::GST_GLSL_VERSION_320 => Self::_320, + ffi::GST_GLSL_VERSION_330 => Self::_330, + ffi::GST_GLSL_VERSION_400 => Self::_400, + ffi::GST_GLSL_VERSION_410 => Self::_410, + ffi::GST_GLSL_VERSION_420 => Self::_420, + ffi::GST_GLSL_VERSION_430 => Self::_430, + ffi::GST_GLSL_VERSION_440 => Self::_440, + ffi::GST_GLSL_VERSION_450 => Self::_450, value => Self::__Unknown(value), } } @@ -700,9 +700,9 @@ impl FromGlib for GLStereoDownmix { unsafe fn from_glib(value: ffi::GstGLStereoDownmix) -> Self { skip_assert_initialized!(); match value { - 0 => Self::GreenMagentaDubois, - 1 => Self::RedCyanDubois, - 2 => Self::AmberBlueDubois, + ffi::GST_GL_STEREO_DOWNMIX_ANAGLYPH_GREEN_MAGENTA_DUBOIS => Self::GreenMagentaDubois, + ffi::GST_GL_STEREO_DOWNMIX_ANAGLYPH_RED_CYAN_DUBOIS => Self::RedCyanDubois, + ffi::GST_GL_STEREO_DOWNMIX_ANAGLYPH_AMBER_BLUE_DUBOIS => Self::AmberBlueDubois, value => Self::__Unknown(value), } } @@ -814,10 +814,10 @@ impl FromGlib for GLTextureTarget { unsafe fn from_glib(value: ffi::GstGLTextureTarget) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::_2d, - 2 => Self::Rectangle, - 3 => Self::ExternalOes, + ffi::GST_GL_TEXTURE_TARGET_NONE => Self::None, + ffi::GST_GL_TEXTURE_TARGET_2D => Self::_2d, + ffi::GST_GL_TEXTURE_TARGET_RECTANGLE => Self::Rectangle, + ffi::GST_GL_TEXTURE_TARGET_EXTERNAL_OES => Self::ExternalOes, value => Self::__Unknown(value), } } @@ -895,11 +895,11 @@ impl FromGlib for GLUploadReturn { unsafe fn from_glib(value: ffi::GstGLUploadReturn) -> Self { skip_assert_initialized!(); match value { - 1 => Self::Done, - -1 => Self::Error, - -2 => Self::Unsupported, - -3 => Self::Reconfigure, - -100 => Self::UnsharedGlContext, + ffi::GST_GL_UPLOAD_DONE => Self::Done, + ffi::GST_GL_UPLOAD_ERROR => Self::Error, + ffi::GST_GL_UPLOAD_UNSUPPORTED => Self::Unsupported, + ffi::GST_GL_UPLOAD_RECONFIGURE => Self::Reconfigure, + ffi::GST_GL_UPLOAD_UNSHARED_GL_CONTEXT => Self::UnsharedGlContext, value => Self::__Unknown(value), } } @@ -971,9 +971,9 @@ impl FromGlib for GLWindowError { unsafe fn from_glib(value: ffi::GstGLWindowError) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Failed, - 1 => Self::OldLibs, - 2 => Self::ResourceUnavailable, + ffi::GST_GL_WINDOW_ERROR_FAILED => Self::Failed, + ffi::GST_GL_WINDOW_ERROR_OLD_LIBS => Self::OldLibs, + ffi::GST_GL_WINDOW_ERROR_RESOURCE_UNAVAILABLE => Self::ResourceUnavailable, value => Self::__Unknown(value), } } @@ -993,9 +993,9 @@ impl ErrorDomain for GLWindowError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 0 => Some(Self::Failed), - 1 => Some(Self::OldLibs), - 2 => Some(Self::ResourceUnavailable), + ffi::GST_GL_WINDOW_ERROR_FAILED => Some(Self::Failed), + ffi::GST_GL_WINDOW_ERROR_OLD_LIBS => Some(Self::OldLibs), + ffi::GST_GL_WINDOW_ERROR_RESOURCE_UNAVAILABLE => Some(Self::ResourceUnavailable), _ => Some(Self::Failed), } } diff --git a/gstreamer-gl/src/auto/versions.txt b/gstreamer-gl/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-gl/src/auto/versions.txt +++ b/gstreamer-gl/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-gl/sys/build.rs b/gstreamer-gl/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-gl/sys/build.rs +++ b/gstreamer-gl/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/sys/src/lib.rs b/gstreamer-gl/sys/src/lib.rs index 4ebc17974..1aec04609 100644 --- a/gstreamer-gl/sys/src/lib.rs +++ b/gstreamer-gl/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -264,7 +264,7 @@ pub struct GstGLAllocationParams { impl ::std::fmt::Debug for GstGLAllocationParams { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLAllocationParams @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLAllocationParams @ {:p}", self)) .field("struct_size", &self.struct_size) .field("copy", &self.copy) .field("free", &self.free) @@ -299,7 +299,7 @@ pub struct GstGLAsyncDebug { impl ::std::fmt::Debug for GstGLAsyncDebug { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLAsyncDebug @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLAsyncDebug @ {:p}", self)) .finish() } } @@ -323,7 +323,7 @@ pub struct GstGLBaseFilterClass { impl ::std::fmt::Debug for GstGLBaseFilterClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLBaseFilterClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLBaseFilterClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("supported_gl_api", &self.supported_gl_api) .field("gl_start", &self.gl_start) @@ -358,7 +358,7 @@ pub struct GstGLBaseMemory { impl ::std::fmt::Debug for GstGLBaseMemory { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLBaseMemory @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLBaseMemory @ {:p}", self)) .field("mem", &self.mem) .field("context", &self.context) .field("lock", &self.lock) @@ -386,18 +386,15 @@ pub struct GstGLBaseMemoryAllocatorClass { impl ::std::fmt::Debug for GstGLBaseMemoryAllocatorClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstGLBaseMemoryAllocatorClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .field("alloc", &self.alloc) - .field("create", &self.create) - .field("map", &self.map) - .field("unmap", &self.unmap) - .field("copy", &self.copy) - .field("destroy", &self.destroy) - .finish() + f.debug_struct(&format!("GstGLBaseMemoryAllocatorClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .field("alloc", &self.alloc) + .field("create", &self.create) + .field("map", &self.map) + .field("unmap", &self.unmap) + .field("copy", &self.copy) + .field("destroy", &self.destroy) + .finish() } } @@ -415,7 +412,7 @@ pub struct GstGLBaseSrcClass { impl ::std::fmt::Debug for GstGLBaseSrcClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLBaseSrcClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLBaseSrcClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("supported_gl_api", &self.supported_gl_api) .field("gl_start", &self.gl_start) @@ -441,7 +438,7 @@ pub struct GstGLBuffer { impl ::std::fmt::Debug for GstGLBuffer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLBuffer @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLBuffer @ {:p}", self)) .field("mem", &self.mem) .field("id", &self.id) .field("target", &self.target) @@ -461,14 +458,11 @@ pub struct GstGLBufferAllocationParams { impl ::std::fmt::Debug for GstGLBufferAllocationParams { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstGLBufferAllocationParams @ {:?}", - self as *const _ - )) - .field("parent", &self.parent) - .field("gl_target", &self.gl_target) - .field("gl_usage", &self.gl_usage) - .finish() + f.debug_struct(&format!("GstGLBufferAllocationParams @ {:p}", self)) + .field("parent", &self.parent) + .field("gl_target", &self.gl_target) + .field("gl_usage", &self.gl_usage) + .finish() } } @@ -481,12 +475,9 @@ pub struct GstGLBufferAllocatorClass { impl ::std::fmt::Debug for GstGLBufferAllocatorClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstGLBufferAllocatorClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .finish() + f.debug_struct(&format!("GstGLBufferAllocatorClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .finish() } } @@ -499,7 +490,7 @@ pub struct GstGLBufferPoolClass { impl ::std::fmt::Debug for GstGLBufferPoolClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLBufferPoolClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLBufferPoolClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -519,7 +510,7 @@ pub struct GstGLColorConvertClass { impl ::std::fmt::Debug for GstGLColorConvertClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLColorConvertClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLColorConvertClass @ {:p}", self)) .finish() } } @@ -559,7 +550,7 @@ pub struct GstGLContextClass { impl ::std::fmt::Debug for GstGLContextClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLContextClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLContextClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("get_current_context", &self.get_current_context) .field("get_gl_context", &self.get_gl_context) @@ -593,7 +584,7 @@ pub struct GstGLDisplayClass { impl ::std::fmt::Debug for GstGLDisplayClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLDisplayClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLDisplayClass @ {:p}", self)) .field("object_class", &self.object_class) .field("get_handle", &self.get_handle) .field("create_window", &self.create_window) @@ -637,7 +628,7 @@ pub struct GstGLFilterClass { impl ::std::fmt::Debug for GstGLFilterClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLFilterClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLFilterClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("set_caps", &self.set_caps) .field("filter", &self.filter) @@ -657,7 +648,7 @@ pub struct GstGLFramebufferClass { impl ::std::fmt::Debug for GstGLFramebufferClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLFramebufferClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLFramebufferClass @ {:p}", self)) .finish() } } @@ -691,7 +682,7 @@ pub struct GstGLMemory { impl ::std::fmt::Debug for GstGLMemory { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLMemory @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLMemory @ {:p}", self)) .field("mem", &self.mem) .field("tex_id", &self.tex_id) .field("tex_target", &self.tex_target) @@ -719,14 +710,11 @@ pub struct GstGLMemoryAllocatorClass { impl ::std::fmt::Debug for GstGLMemoryAllocatorClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstGLMemoryAllocatorClass @ {:?}", - self as *const _ - )) - .field("map", &self.map) - .field("copy", &self.copy) - .field("unmap", &self.unmap) - .finish() + f.debug_struct(&format!("GstGLMemoryAllocatorClass @ {:p}", self)) + .field("map", &self.map) + .field("copy", &self.copy) + .field("unmap", &self.unmap) + .finish() } } @@ -740,7 +728,7 @@ pub struct GstGLMemoryPBO { impl ::std::fmt::Debug for GstGLMemoryPBO { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLMemoryPBO @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLMemoryPBO @ {:p}", self)) .finish() } } @@ -754,12 +742,9 @@ pub struct GstGLMemoryPBOAllocatorClass { impl ::std::fmt::Debug for GstGLMemoryPBOAllocatorClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstGLMemoryPBOAllocatorClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .finish() + f.debug_struct(&format!("GstGLMemoryPBOAllocatorClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .finish() } } @@ -772,12 +757,9 @@ pub struct GstGLOverlayCompositorClass { impl ::std::fmt::Debug for GstGLOverlayCompositorClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstGLOverlayCompositorClass @ {:?}", - self as *const _ - )) - .field("object_class", &self.object_class) - .finish() + f.debug_struct(&format!("GstGLOverlayCompositorClass @ {:p}", self)) + .field("object_class", &self.object_class) + .finish() } } @@ -795,8 +777,7 @@ pub struct GstGLQuery { impl ::std::fmt::Debug for GstGLQuery { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLQuery @ {:?}", self as *const _)) - .finish() + f.debug_struct(&format!("GstGLQuery @ {:p}", self)).finish() } } @@ -814,7 +795,7 @@ pub struct GstGLRenderbuffer { impl ::std::fmt::Debug for GstGLRenderbuffer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLRenderbuffer @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLRenderbuffer @ {:p}", self)) .field("renderbuffer_id", &self.renderbuffer_id) .field("renderbuffer_format", &self.renderbuffer_format) .field("width", &self.width) @@ -836,14 +817,11 @@ pub struct GstGLRenderbufferAllocationParams { impl ::std::fmt::Debug for GstGLRenderbufferAllocationParams { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstGLRenderbufferAllocationParams @ {:?}", - self as *const _ - )) - .field("renderbuffer_format", &self.renderbuffer_format) - .field("width", &self.width) - .field("height", &self.height) - .finish() + f.debug_struct(&format!("GstGLRenderbufferAllocationParams @ {:p}", self)) + .field("renderbuffer_format", &self.renderbuffer_format) + .field("width", &self.width) + .field("height", &self.height) + .finish() } } @@ -856,12 +834,9 @@ pub struct GstGLRenderbufferAllocatorClass { impl ::std::fmt::Debug for GstGLRenderbufferAllocatorClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstGLRenderbufferAllocatorClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .finish() + f.debug_struct(&format!("GstGLRenderbufferAllocatorClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .finish() } } @@ -874,7 +849,7 @@ pub struct GstGLSLStageClass { impl ::std::fmt::Debug for GstGLSLStageClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLSLStageClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLSLStageClass @ {:p}", self)) .finish() } } @@ -892,7 +867,7 @@ pub struct GstGLShaderClass { impl ::std::fmt::Debug for GstGLShaderClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLShaderClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLShaderClass @ {:p}", self)) .finish() } } @@ -928,7 +903,7 @@ pub struct GstGLSyncMeta { impl ::std::fmt::Debug for GstGLSyncMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLSyncMeta @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLSyncMeta @ {:p}", self)) .field("parent", &self.parent) .field("context", &self.context) .field("data", &self.data) @@ -954,7 +929,7 @@ pub struct GstGLUploadClass { impl ::std::fmt::Debug for GstGLUploadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLUploadClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLUploadClass @ {:p}", self)) .field("object_class", &self.object_class) .finish() } @@ -979,17 +954,14 @@ pub struct GstGLVideoAllocationParams { impl ::std::fmt::Debug for GstGLVideoAllocationParams { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstGLVideoAllocationParams @ {:?}", - self as *const _ - )) - .field("parent", &self.parent) - .field("v_info", &self.v_info) - .field("plane", &self.plane) - .field("valign", &self.valign) - .field("target", &self.target) - .field("tex_format", &self.tex_format) - .finish() + f.debug_struct(&format!("GstGLVideoAllocationParams @ {:p}", self)) + .field("parent", &self.parent) + .field("v_info", &self.v_info) + .field("plane", &self.plane) + .field("valign", &self.valign) + .field("target", &self.target) + .field("tex_format", &self.tex_format) + .finish() } } @@ -1002,7 +974,7 @@ pub struct GstGLViewConvertClass { impl ::std::fmt::Debug for GstGLViewConvertClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLViewConvertClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLViewConvertClass @ {:p}", self)) .finish() } } @@ -1041,7 +1013,7 @@ pub struct GstGLWindowClass { impl ::std::fmt::Debug for GstGLWindowClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLWindowClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLWindowClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("get_display", &self.get_display) .field("set_window_handle", &self.set_window_handle) @@ -1084,7 +1056,7 @@ pub struct GstGLBaseFilter { impl ::std::fmt::Debug for GstGLBaseFilter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLBaseFilter @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLBaseFilter @ {:p}", self)) .field("parent", &self.parent) .field("display", &self.display) .field("context", &self.context) @@ -1104,11 +1076,8 @@ pub struct GstGLBaseMemoryAllocator { impl ::std::fmt::Debug for GstGLBaseMemoryAllocator { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstGLBaseMemoryAllocator @ {:?}", - self as *const _ - )) - .finish() + f.debug_struct(&format!("GstGLBaseMemoryAllocator @ {:p}", self)) + .finish() } } @@ -1127,7 +1096,7 @@ pub struct GstGLBaseSrc { impl ::std::fmt::Debug for GstGLBaseSrc { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLBaseSrc @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLBaseSrc @ {:p}", self)) .field("parent", &self.parent) .field("display", &self.display) .field("context", &self.context) @@ -1147,7 +1116,7 @@ pub struct GstGLBufferAllocator { impl ::std::fmt::Debug for GstGLBufferAllocator { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLBufferAllocator @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLBufferAllocator @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1164,7 +1133,7 @@ pub struct GstGLBufferPool { impl ::std::fmt::Debug for GstGLBufferPool { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLBufferPool @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLBufferPool @ {:p}", self)) .field("bufferpool", &self.bufferpool) .field("context", &self.context) .finish() @@ -1190,7 +1159,7 @@ pub struct GstGLColorConvert { impl ::std::fmt::Debug for GstGLColorConvert { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLColorConvert @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLColorConvert @ {:p}", self)) .finish() } } @@ -1208,7 +1177,7 @@ pub struct GstGLContext { impl ::std::fmt::Debug for GstGLContext { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLContext @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLContext @ {:p}", self)) .field("gl_vtable", &self.gl_vtable) .finish() } @@ -1228,7 +1197,7 @@ pub struct GstGLDisplay { impl ::std::fmt::Debug for GstGLDisplay { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLDisplay @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLDisplay @ {:p}", self)) .finish() } } @@ -1258,7 +1227,7 @@ pub struct GstGLFilter { impl ::std::fmt::Debug for GstGLFilter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLFilter @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLFilter @ {:p}", self)) .field("parent", &self.parent) .field("in_info", &self.in_info) .field("out_info", &self.out_info) @@ -1283,7 +1252,7 @@ pub struct GstGLFramebuffer { impl ::std::fmt::Debug for GstGLFramebuffer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLFramebuffer @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLFramebuffer @ {:p}", self)) .finish() } } @@ -1297,7 +1266,7 @@ pub struct GstGLMemoryAllocator { impl ::std::fmt::Debug for GstGLMemoryAllocator { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLMemoryAllocator @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLMemoryAllocator @ {:p}", self)) .finish() } } @@ -1311,7 +1280,7 @@ pub struct GstGLMemoryPBOAllocator { impl ::std::fmt::Debug for GstGLMemoryPBOAllocator { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLMemoryPBOAllocator @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLMemoryPBOAllocator @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1333,7 +1302,7 @@ pub struct GstGLOverlayCompositor { impl ::std::fmt::Debug for GstGLOverlayCompositor { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLOverlayCompositor @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLOverlayCompositor @ {:p}", self)) .finish() } } @@ -1347,12 +1316,9 @@ pub struct GstGLRenderbufferAllocator { impl ::std::fmt::Debug for GstGLRenderbufferAllocator { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstGLRenderbufferAllocator @ {:?}", - self as *const _ - )) - .field("parent", &self.parent) - .finish() + f.debug_struct(&format!("GstGLRenderbufferAllocator @ {:p}", self)) + .field("parent", &self.parent) + .finish() } } @@ -1367,7 +1333,7 @@ pub struct GstGLSLStage { impl ::std::fmt::Debug for GstGLSLStage { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLSLStage @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLSLStage @ {:p}", self)) .finish() } } @@ -1383,7 +1349,7 @@ pub struct GstGLShader { impl ::std::fmt::Debug for GstGLShader { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLShader @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLShader @ {:p}", self)) .field("parent", &self.parent) .field("context", &self.context) .finish() @@ -1401,7 +1367,7 @@ pub struct GstGLUpload { impl ::std::fmt::Debug for GstGLUpload { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLUpload @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLUpload @ {:p}", self)) .field("parent", &self.parent) .field("context", &self.context) .finish() @@ -1433,7 +1399,7 @@ pub struct GstGLViewConvert { impl ::std::fmt::Debug for GstGLViewConvert { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLViewConvert @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLViewConvert @ {:p}", self)) .field("object", &self.object) .field("context", &self.context) .field("shader", &self.shader) @@ -1479,7 +1445,7 @@ pub struct GstGLWindow { impl ::std::fmt::Debug for GstGLWindow { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLWindow @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLWindow @ {:p}", self)) .finish() } } diff --git a/gstreamer-gl/sys/tests/abi.rs b/gstreamer-gl/sys/tests/abi.rs index 871340668..946423172 100644 --- a/gstreamer-gl/sys/tests/abi.rs +++ b/gstreamer-gl/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/sys/tests/constant.c b/gstreamer-gl/sys/tests/constant.c index 534f7f5b7..a47bcd27f 100644 --- a/gstreamer-gl/sys/tests/constant.c +++ b/gstreamer-gl/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/sys/tests/layout.c b/gstreamer-gl/sys/tests/layout.c index ba38da182..357156edc 100644 --- a/gstreamer-gl/sys/tests/layout.c +++ b/gstreamer-gl/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/src/auto/versions.txt b/gstreamer-gl/wayland/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-gl/wayland/src/auto/versions.txt +++ b/gstreamer-gl/wayland/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-gl/wayland/sys/build.rs b/gstreamer-gl/wayland/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-gl/wayland/sys/build.rs +++ b/gstreamer-gl/wayland/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/sys/src/lib.rs b/gstreamer-gl/wayland/sys/src/lib.rs index d9257bc0a..2c14f530c 100644 --- a/gstreamer-gl/wayland/sys/src/lib.rs +++ b/gstreamer-gl/wayland/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -34,13 +34,10 @@ pub struct GstGLDisplayWaylandClass { impl ::std::fmt::Debug for GstGLDisplayWaylandClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstGLDisplayWaylandClass @ {:?}", - self as *const _ - )) - .field("object_class", &self.object_class) - .field("_padding", &self._padding) - .finish() + f.debug_struct(&format!("GstGLDisplayWaylandClass @ {:p}", self)) + .field("object_class", &self.object_class) + .field("_padding", &self._padding) + .finish() } } @@ -60,7 +57,7 @@ pub struct GstGLDisplayWayland { impl ::std::fmt::Debug for GstGLDisplayWayland { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLDisplayWayland @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLDisplayWayland @ {:p}", self)) .field("parent", &self.parent) .field("display", &self.display) .field("registry", &self.registry) diff --git a/gstreamer-gl/wayland/sys/tests/abi.rs b/gstreamer-gl/wayland/sys/tests/abi.rs index 970fd2044..65f7dac28 100644 --- a/gstreamer-gl/wayland/sys/tests/abi.rs +++ b/gstreamer-gl/wayland/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/sys/tests/constant.c b/gstreamer-gl/wayland/sys/tests/constant.c index 691b5d2b3..7f6ac9c5c 100644 --- a/gstreamer-gl/wayland/sys/tests/constant.c +++ b/gstreamer-gl/wayland/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/sys/tests/layout.c b/gstreamer-gl/wayland/sys/tests/layout.c index 28ef18c22..2762b999b 100644 --- a/gstreamer-gl/wayland/sys/tests/layout.c +++ b/gstreamer-gl/wayland/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/x11/src/auto/versions.txt b/gstreamer-gl/x11/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-gl/x11/src/auto/versions.txt +++ b/gstreamer-gl/x11/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-gl/x11/sys/build.rs b/gstreamer-gl/x11/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-gl/x11/sys/build.rs +++ b/gstreamer-gl/x11/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/x11/sys/src/lib.rs b/gstreamer-gl/x11/sys/src/lib.rs index 5b9b9f98d..4c32c0f36 100644 --- a/gstreamer-gl/x11/sys/src/lib.rs +++ b/gstreamer-gl/x11/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -34,7 +34,7 @@ pub struct GstGLDisplayX11Class { impl ::std::fmt::Debug for GstGLDisplayX11Class { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLDisplayX11Class @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLDisplayX11Class @ {:p}", self)) .field("object_class", &self.object_class) .field("_padding", &self._padding) .finish() @@ -55,7 +55,7 @@ pub struct GstGLDisplayX11 { impl ::std::fmt::Debug for GstGLDisplayX11 { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGLDisplayX11 @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGLDisplayX11 @ {:p}", self)) .finish() } } diff --git a/gstreamer-gl/x11/sys/tests/abi.rs b/gstreamer-gl/x11/sys/tests/abi.rs index 17f5b823f..af2f8d5d4 100644 --- a/gstreamer-gl/x11/sys/tests/abi.rs +++ b/gstreamer-gl/x11/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/x11/sys/tests/constant.c b/gstreamer-gl/x11/sys/tests/constant.c index 691b5d2b3..7f6ac9c5c 100644 --- a/gstreamer-gl/x11/sys/tests/constant.c +++ b/gstreamer-gl/x11/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/x11/sys/tests/layout.c b/gstreamer-gl/x11/sys/tests/layout.c index 611ba7d01..e19067d9d 100644 --- a/gstreamer-gl/x11/sys/tests/layout.c +++ b/gstreamer-gl/x11/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/build.rs b/gstreamer-mpegts/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-mpegts/sys/build.rs +++ b/gstreamer-mpegts/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/src/lib.rs b/gstreamer-mpegts/sys/src/lib.rs index 74a129dd3..1eafc752c 100644 --- a/gstreamer-mpegts/sys/src/lib.rs +++ b/gstreamer-mpegts/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -612,7 +612,7 @@ pub struct GstMpegtsAtscEIT { impl ::std::fmt::Debug for GstMpegtsAtscEIT { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsAtscEIT @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsAtscEIT @ {:p}", self)) .field("source_id", &self.source_id) .field("protocol_version", &self.protocol_version) .field("events", &self.events) @@ -633,7 +633,7 @@ pub struct GstMpegtsAtscEITEvent { impl ::std::fmt::Debug for GstMpegtsAtscEITEvent { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsAtscEITEvent @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsAtscEITEvent @ {:p}", self)) .field("event_id", &self.event_id) .field("start_time", &self.start_time) .field("etm_location", &self.etm_location) @@ -655,7 +655,7 @@ pub struct GstMpegtsAtscETT { impl ::std::fmt::Debug for GstMpegtsAtscETT { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsAtscETT @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsAtscETT @ {:p}", self)) .field("ett_table_id_extension", &self.ett_table_id_extension) .field("protocol_version", &self.protocol_version) .field("etm_id", &self.etm_id) @@ -675,7 +675,7 @@ pub struct GstMpegtsAtscMGT { impl ::std::fmt::Debug for GstMpegtsAtscMGT { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsAtscMGT @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsAtscMGT @ {:p}", self)) .field("protocol_version", &self.protocol_version) .field("tables_defined", &self.tables_defined) .field("tables", &self.tables) @@ -696,7 +696,7 @@ pub struct GstMpegtsAtscMGTTable { impl ::std::fmt::Debug for GstMpegtsAtscMGTTable { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsAtscMGTTable @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsAtscMGTTable @ {:p}", self)) .field("table_type", &self.table_type) .field("pid", &self.pid) .field("version_number", &self.version_number) @@ -715,7 +715,7 @@ pub struct GstMpegtsAtscMultString { impl ::std::fmt::Debug for GstMpegtsAtscMultString { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsAtscMultString @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsAtscMultString @ {:p}", self)) .field("iso_639_langcode", &self.iso_639_langcode) .field("segments", &self.segments) .finish() @@ -734,7 +734,7 @@ pub struct GstMpegtsAtscRRT { impl ::std::fmt::Debug for GstMpegtsAtscRRT { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsAtscRRT @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsAtscRRT @ {:p}", self)) .field("protocol_version", &self.protocol_version) .field("names", &self.names) .field("dimensions_defined", &self.dimensions_defined) @@ -755,15 +755,12 @@ pub struct GstMpegtsAtscRRTDimension { impl ::std::fmt::Debug for GstMpegtsAtscRRTDimension { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsAtscRRTDimension @ {:?}", - self as *const _ - )) - .field("names", &self.names) - .field("graduated_scale", &self.graduated_scale) - .field("values_defined", &self.values_defined) - .field("values", &self.values) - .finish() + f.debug_struct(&format!("GstMpegtsAtscRRTDimension @ {:p}", self)) + .field("names", &self.names) + .field("graduated_scale", &self.graduated_scale) + .field("values_defined", &self.values_defined) + .field("values", &self.values) + .finish() } } @@ -776,13 +773,10 @@ pub struct GstMpegtsAtscRRTDimensionValue { impl ::std::fmt::Debug for GstMpegtsAtscRRTDimensionValue { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsAtscRRTDimensionValue @ {:?}", - self as *const _ - )) - .field("abbrev_ratings", &self.abbrev_ratings) - .field("ratings", &self.ratings) - .finish() + f.debug_struct(&format!("GstMpegtsAtscRRTDimensionValue @ {:p}", self)) + .field("abbrev_ratings", &self.abbrev_ratings) + .field("ratings", &self.ratings) + .finish() } } @@ -801,7 +795,7 @@ pub struct GstMpegtsAtscSTT { impl ::std::fmt::Debug for GstMpegtsAtscSTT { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsAtscSTT @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsAtscSTT @ {:p}", self)) .field("protocol_version", &self.protocol_version) .field("system_time", &self.system_time) .field("gps_utc_offset", &self.gps_utc_offset) @@ -826,16 +820,13 @@ pub struct GstMpegtsAtscStringSegment { impl ::std::fmt::Debug for GstMpegtsAtscStringSegment { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsAtscStringSegment @ {:?}", - self as *const _ - )) - .field("compression_type", &self.compression_type) - .field("mode", &self.mode) - .field("compressed_data_size", &self.compressed_data_size) - .field("compressed_data", &self.compressed_data) - .field("cached_string", &self.cached_string) - .finish() + f.debug_struct(&format!("GstMpegtsAtscStringSegment @ {:p}", self)) + .field("compression_type", &self.compression_type) + .field("mode", &self.mode) + .field("compressed_data_size", &self.compressed_data_size) + .field("compressed_data", &self.compressed_data) + .field("cached_string", &self.cached_string) + .finish() } } @@ -850,7 +841,7 @@ pub struct GstMpegtsAtscVCT { impl ::std::fmt::Debug for GstMpegtsAtscVCT { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsAtscVCT @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsAtscVCT @ {:p}", self)) .field("transport_stream_id", &self.transport_stream_id) .field("protocol_version", &self.protocol_version) .field("sources", &self.sources) @@ -882,7 +873,7 @@ pub struct GstMpegtsAtscVCTSource { impl ::std::fmt::Debug for GstMpegtsAtscVCTSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsAtscVCTSource @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsAtscVCTSource @ {:p}", self)) .field("short_name", &self.short_name) .field("major_channel_number", &self.major_channel_number) .field("minor_channel_number", &self.minor_channel_number) @@ -912,7 +903,7 @@ pub struct GstMpegtsBAT { impl ::std::fmt::Debug for GstMpegtsBAT { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsBAT @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsBAT @ {:p}", self)) .field("descriptors", &self.descriptors) .field("streams", &self.streams) .finish() @@ -929,7 +920,7 @@ pub struct GstMpegtsBATStream { impl ::std::fmt::Debug for GstMpegtsBATStream { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsBATStream @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsBATStream @ {:p}", self)) .field("transport_stream_id", &self.transport_stream_id) .field("original_network_id", &self.original_network_id) .field("descriptors", &self.descriptors) @@ -950,8 +941,8 @@ pub struct GstMpegtsCableDeliverySystemDescriptor { impl ::std::fmt::Debug for GstMpegtsCableDeliverySystemDescriptor { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( - "GstMpegtsCableDeliverySystemDescriptor @ {:?}", - self as *const _ + "GstMpegtsCableDeliverySystemDescriptor @ {:p}", + self )) .field("frequency", &self.frequency) .field("outer_fec", &self.outer_fec) @@ -974,16 +965,13 @@ pub struct GstMpegtsComponentDescriptor { impl ::std::fmt::Debug for GstMpegtsComponentDescriptor { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsComponentDescriptor @ {:?}", - self as *const _ - )) - .field("stream_content", &self.stream_content) - .field("component_type", &self.component_type) - .field("component_tag", &self.component_tag) - .field("language_code", &self.language_code) - .field("text", &self.text) - .finish() + f.debug_struct(&format!("GstMpegtsComponentDescriptor @ {:p}", self)) + .field("stream_content", &self.stream_content) + .field("component_type", &self.component_type) + .field("component_tag", &self.component_tag) + .field("language_code", &self.language_code) + .field("text", &self.text) + .finish() } } @@ -997,7 +985,7 @@ pub struct GstMpegtsContent { impl ::std::fmt::Debug for GstMpegtsContent { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsContent @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsContent @ {:p}", self)) .field("content_nibble_1", &self.content_nibble_1) .field("content_nibble_2", &self.content_nibble_2) .field("user_byte", &self.user_byte) @@ -1019,17 +1007,14 @@ pub struct GstMpegtsDVBLinkageDescriptor { impl ::std::fmt::Debug for GstMpegtsDVBLinkageDescriptor { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsDVBLinkageDescriptor @ {:?}", - self as *const _ - )) - .field("transport_stream_id", &self.transport_stream_id) - .field("original_network_id", &self.original_network_id) - .field("service_id", &self.service_id) - .field("linkage_type", &self.linkage_type) - .field("private_data_length", &self.private_data_length) - .field("private_data_bytes", &self.private_data_bytes) - .finish() + f.debug_struct(&format!("GstMpegtsDVBLinkageDescriptor @ {:p}", self)) + .field("transport_stream_id", &self.transport_stream_id) + .field("original_network_id", &self.original_network_id) + .field("service_id", &self.service_id) + .field("linkage_type", &self.linkage_type) + .field("private_data_length", &self.private_data_length) + .field("private_data_bytes", &self.private_data_bytes) + .finish() } } @@ -1043,14 +1028,11 @@ pub struct GstMpegtsDVBLinkageEvent { impl ::std::fmt::Debug for GstMpegtsDVBLinkageEvent { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsDVBLinkageEvent @ {:?}", - self as *const _ - )) - .field("target_event_id", &self.target_event_id) - .field("target_listed", &self.target_listed) - .field("event_simulcast", &self.event_simulcast) - .finish() + f.debug_struct(&format!("GstMpegtsDVBLinkageEvent @ {:p}", self)) + .field("target_event_id", &self.target_event_id) + .field("target_listed", &self.target_listed) + .field("event_simulcast", &self.event_simulcast) + .finish() } } @@ -1072,28 +1054,25 @@ pub struct GstMpegtsDVBLinkageExtendedEvent { impl ::std::fmt::Debug for GstMpegtsDVBLinkageExtendedEvent { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsDVBLinkageExtendedEvent @ {:?}", - self as *const _ - )) - .field("target_event_id", &self.target_event_id) - .field("target_listed", &self.target_listed) - .field("event_simulcast", &self.event_simulcast) - .field("link_type", &self.link_type) - .field("target_id_type", &self.target_id_type) - .field("original_network_id_flag", &self.original_network_id_flag) - .field("service_id_flag", &self.service_id_flag) - .field("user_defined_id", &self.user_defined_id) - .field( - "target_transport_stream_id", - &self.target_transport_stream_id, - ) - .field( - "target_original_network_id", - &self.target_original_network_id, - ) - .field("target_service_id", &self.target_service_id) - .finish() + f.debug_struct(&format!("GstMpegtsDVBLinkageExtendedEvent @ {:p}", self)) + .field("target_event_id", &self.target_event_id) + .field("target_listed", &self.target_listed) + .field("event_simulcast", &self.event_simulcast) + .field("link_type", &self.link_type) + .field("target_id_type", &self.target_id_type) + .field("original_network_id_flag", &self.original_network_id_flag) + .field("service_id_flag", &self.service_id_flag) + .field("user_defined_id", &self.user_defined_id) + .field( + "target_transport_stream_id", + &self.target_transport_stream_id, + ) + .field( + "target_original_network_id", + &self.target_original_network_id, + ) + .field("target_service_id", &self.target_service_id) + .finish() } } @@ -1108,15 +1087,12 @@ pub struct GstMpegtsDVBLinkageMobileHandOver { impl ::std::fmt::Debug for GstMpegtsDVBLinkageMobileHandOver { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsDVBLinkageMobileHandOver @ {:?}", - self as *const _ - )) - .field("hand_over_type", &self.hand_over_type) - .field("origin_type", &self.origin_type) - .field("network_id", &self.network_id) - .field("initial_service_id", &self.initial_service_id) - .finish() + f.debug_struct(&format!("GstMpegtsDVBLinkageMobileHandOver @ {:p}", self)) + .field("hand_over_type", &self.hand_over_type) + .field("origin_type", &self.origin_type) + .field("network_id", &self.network_id) + .field("initial_service_id", &self.initial_service_id) + .finish() } } @@ -1129,13 +1105,10 @@ pub struct GstMpegtsDVBParentalRatingItem { impl ::std::fmt::Debug for GstMpegtsDVBParentalRatingItem { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsDVBParentalRatingItem @ {:?}", - self as *const _ - )) - .field("country_code", &self.country_code) - .field("rating", &self.rating) - .finish() + f.debug_struct(&format!("GstMpegtsDVBParentalRatingItem @ {:p}", self)) + .field("country_code", &self.country_code) + .field("rating", &self.rating) + .finish() } } @@ -1148,13 +1121,10 @@ pub struct GstMpegtsDVBServiceListItem { impl ::std::fmt::Debug for GstMpegtsDVBServiceListItem { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsDVBServiceListItem @ {:?}", - self as *const _ - )) - .field("service_id", &self.service_id) - .field("type_", &self.type_) - .finish() + f.debug_struct(&format!("GstMpegtsDVBServiceListItem @ {:p}", self)) + .field("service_id", &self.service_id) + .field("type_", &self.type_) + .finish() } } @@ -1171,17 +1141,14 @@ pub struct GstMpegtsDataBroadcastDescriptor { impl ::std::fmt::Debug for GstMpegtsDataBroadcastDescriptor { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsDataBroadcastDescriptor @ {:?}", - self as *const _ - )) - .field("data_broadcast_id", &self.data_broadcast_id) - .field("component_tag", &self.component_tag) - .field("length", &self.length) - .field("selector_bytes", &self.selector_bytes) - .field("language_code", &self.language_code) - .field("text", &self.text) - .finish() + f.debug_struct(&format!("GstMpegtsDataBroadcastDescriptor @ {:p}", self)) + .field("data_broadcast_id", &self.data_broadcast_id) + .field("component_tag", &self.component_tag) + .field("length", &self.length) + .field("selector_bytes", &self.selector_bytes) + .field("language_code", &self.language_code) + .field("text", &self.text) + .finish() } } @@ -1197,7 +1164,7 @@ pub struct GstMpegtsDescriptor { impl ::std::fmt::Debug for GstMpegtsDescriptor { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsDescriptor @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsDescriptor @ {:p}", self)) .field("tag", &self.tag) .field("tag_extension", &self.tag_extension) .field("length", &self.length) @@ -1216,8 +1183,8 @@ pub struct GstMpegtsDvbMultilingualBouquetNameItem { impl ::std::fmt::Debug for GstMpegtsDvbMultilingualBouquetNameItem { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( - "GstMpegtsDvbMultilingualBouquetNameItem @ {:?}", - self as *const _ + "GstMpegtsDvbMultilingualBouquetNameItem @ {:p}", + self )) .field("language_code", &self.language_code) .field("bouquet_name", &self.bouquet_name) @@ -1235,8 +1202,8 @@ pub struct GstMpegtsDvbMultilingualComponentItem { impl ::std::fmt::Debug for GstMpegtsDvbMultilingualComponentItem { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( - "GstMpegtsDvbMultilingualComponentItem @ {:?}", - self as *const _ + "GstMpegtsDvbMultilingualComponentItem @ {:p}", + self )) .field("language_code", &self.language_code) .field("description", &self.description) @@ -1254,8 +1221,8 @@ pub struct GstMpegtsDvbMultilingualNetworkNameItem { impl ::std::fmt::Debug for GstMpegtsDvbMultilingualNetworkNameItem { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( - "GstMpegtsDvbMultilingualNetworkNameItem @ {:?}", - self as *const _ + "GstMpegtsDvbMultilingualNetworkNameItem @ {:p}", + self )) .field("language_code", &self.language_code) .field("network_name", &self.network_name) @@ -1274,8 +1241,8 @@ pub struct GstMpegtsDvbMultilingualServiceNameItem { impl ::std::fmt::Debug for GstMpegtsDvbMultilingualServiceNameItem { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( - "GstMpegtsDvbMultilingualServiceNameItem @ {:?}", - self as *const _ + "GstMpegtsDvbMultilingualServiceNameItem @ {:p}", + self )) .field("language_code", &self.language_code) .field("provider_name", &self.provider_name) @@ -1298,7 +1265,7 @@ pub struct GstMpegtsEIT { impl ::std::fmt::Debug for GstMpegtsEIT { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsEIT @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsEIT @ {:p}", self)) .field("transport_stream_id", &self.transport_stream_id) .field("original_network_id", &self.original_network_id) .field( @@ -1326,7 +1293,7 @@ pub struct GstMpegtsEITEvent { impl ::std::fmt::Debug for GstMpegtsEITEvent { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsEITEvent @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsEITEvent @ {:p}", self)) .field("event_id", &self.event_id) .field("start_time", &self.start_time) .field("duration", &self.duration) @@ -1349,16 +1316,13 @@ pub struct GstMpegtsExtendedEventDescriptor { impl ::std::fmt::Debug for GstMpegtsExtendedEventDescriptor { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsExtendedEventDescriptor @ {:?}", - self as *const _ - )) - .field("descriptor_number", &self.descriptor_number) - .field("last_descriptor_number", &self.last_descriptor_number) - .field("language_code", &self.language_code) - .field("items", &self.items) - .field("text", &self.text) - .finish() + f.debug_struct(&format!("GstMpegtsExtendedEventDescriptor @ {:p}", self)) + .field("descriptor_number", &self.descriptor_number) + .field("last_descriptor_number", &self.last_descriptor_number) + .field("language_code", &self.language_code) + .field("items", &self.items) + .field("text", &self.text) + .finish() } } @@ -1371,13 +1335,10 @@ pub struct GstMpegtsExtendedEventItem { impl ::std::fmt::Debug for GstMpegtsExtendedEventItem { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsExtendedEventItem @ {:?}", - self as *const _ - )) - .field("item_description", &self.item_description) - .field("item", &self.item) - .finish() + f.debug_struct(&format!("GstMpegtsExtendedEventItem @ {:p}", self)) + .field("item_description", &self.item_description) + .field("item", &self.item) + .finish() } } @@ -1391,12 +1352,9 @@ pub struct GstMpegtsISO639LanguageDescriptor { impl ::std::fmt::Debug for GstMpegtsISO639LanguageDescriptor { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsISO639LanguageDescriptor @ {:?}", - self as *const _ - )) - .field("nb_language", &self.nb_language) - .finish() + f.debug_struct(&format!("GstMpegtsISO639LanguageDescriptor @ {:p}", self)) + .field("nb_language", &self.nb_language) + .finish() } } @@ -1410,7 +1368,7 @@ pub struct GstMpegtsLogicalChannel { impl ::std::fmt::Debug for GstMpegtsLogicalChannel { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsLogicalChannel @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsLogicalChannel @ {:p}", self)) .field("service_id", &self.service_id) .field("visible_service", &self.visible_service) .field("logical_channel_number", &self.logical_channel_number) @@ -1427,12 +1385,9 @@ pub struct GstMpegtsLogicalChannelDescriptor { impl ::std::fmt::Debug for GstMpegtsLogicalChannelDescriptor { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsLogicalChannelDescriptor @ {:?}", - self as *const _ - )) - .field("nb_channels", &self.nb_channels) - .finish() + f.debug_struct(&format!("GstMpegtsLogicalChannelDescriptor @ {:p}", self)) + .field("nb_channels", &self.nb_channels) + .finish() } } @@ -1447,7 +1402,7 @@ pub struct GstMpegtsNIT { impl ::std::fmt::Debug for GstMpegtsNIT { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsNIT @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsNIT @ {:p}", self)) .field("actual_network", &self.actual_network) .field("network_id", &self.network_id) .field("descriptors", &self.descriptors) @@ -1466,7 +1421,7 @@ pub struct GstMpegtsNITStream { impl ::std::fmt::Debug for GstMpegtsNITStream { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsNITStream @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsNITStream @ {:p}", self)) .field("transport_stream_id", &self.transport_stream_id) .field("original_network_id", &self.original_network_id) .field("descriptors", &self.descriptors) @@ -1485,7 +1440,7 @@ pub struct GstMpegtsPMT { impl ::std::fmt::Debug for GstMpegtsPMT { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsPMT @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsPMT @ {:p}", self)) .field("pcr_pid", &self.pcr_pid) .field("program_number", &self.program_number) .field("descriptors", &self.descriptors) @@ -1504,7 +1459,7 @@ pub struct GstMpegtsPMTStream { impl ::std::fmt::Debug for GstMpegtsPMTStream { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsPMTStream @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsPMTStream @ {:p}", self)) .field("stream_type", &self.stream_type) .field("pid", &self.pid) .field("descriptors", &self.descriptors) @@ -1521,7 +1476,7 @@ pub struct GstMpegtsPatProgram { impl ::std::fmt::Debug for GstMpegtsPatProgram { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsPatProgram @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsPatProgram @ {:p}", self)) .field("program_number", &self.program_number) .field( "network_or_program_map_PID", @@ -1549,7 +1504,7 @@ pub struct GstMpegtsSCTESIT { impl ::std::fmt::Debug for GstMpegtsSCTESIT { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsSCTESIT @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsSCTESIT @ {:p}", self)) .field("encrypted_packet", &self.encrypted_packet) .field("encryption_algorithm", &self.encryption_algorithm) .field("pts_adjustment", &self.pts_adjustment) @@ -1586,34 +1541,31 @@ pub struct GstMpegtsSCTESpliceEvent { impl ::std::fmt::Debug for GstMpegtsSCTESpliceEvent { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsSCTESpliceEvent @ {:?}", - self as *const _ - )) - .field("insert_event", &self.insert_event) - .field("splice_event_id", &self.splice_event_id) - .field( - "splice_event_cancel_indicator", - &self.splice_event_cancel_indicator, - ) - .field("out_of_network_indicator", &self.out_of_network_indicator) - .field("program_splice_flag", &self.program_splice_flag) - .field("duration_flag", &self.duration_flag) - .field("splice_immediate_flag", &self.splice_immediate_flag) - .field( - "program_splice_time_specified", - &self.program_splice_time_specified, - ) - .field("program_splice_time", &self.program_splice_time) - .field( - "break_duration_auto_return", - &self.break_duration_auto_return, - ) - .field("break_duration", &self.break_duration) - .field("unique_program_id", &self.unique_program_id) - .field("avail_num", &self.avail_num) - .field("avails_expected", &self.avails_expected) - .finish() + f.debug_struct(&format!("GstMpegtsSCTESpliceEvent @ {:p}", self)) + .field("insert_event", &self.insert_event) + .field("splice_event_id", &self.splice_event_id) + .field( + "splice_event_cancel_indicator", + &self.splice_event_cancel_indicator, + ) + .field("out_of_network_indicator", &self.out_of_network_indicator) + .field("program_splice_flag", &self.program_splice_flag) + .field("duration_flag", &self.duration_flag) + .field("splice_immediate_flag", &self.splice_immediate_flag) + .field( + "program_splice_time_specified", + &self.program_splice_time_specified, + ) + .field("program_splice_time", &self.program_splice_time) + .field( + "break_duration_auto_return", + &self.break_duration_auto_return, + ) + .field("break_duration", &self.break_duration) + .field("unique_program_id", &self.unique_program_id) + .field("avail_num", &self.avail_num) + .field("avails_expected", &self.avails_expected) + .finish() } } @@ -1628,7 +1580,7 @@ pub struct GstMpegtsSDT { impl ::std::fmt::Debug for GstMpegtsSDT { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsSDT @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsSDT @ {:p}", self)) .field("original_network_id", &self.original_network_id) .field("actual_ts", &self.actual_ts) .field("transport_stream_id", &self.transport_stream_id) @@ -1650,7 +1602,7 @@ pub struct GstMpegtsSDTService { impl ::std::fmt::Debug for GstMpegtsSDTService { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsSDTService @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsSDTService @ {:p}", self)) .field("service_id", &self.service_id) .field("EIT_schedule_flag", &self.EIT_schedule_flag) .field( @@ -1681,8 +1633,8 @@ pub struct GstMpegtsSatelliteDeliverySystemDescriptor { impl ::std::fmt::Debug for GstMpegtsSatelliteDeliverySystemDescriptor { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( - "GstMpegtsSatelliteDeliverySystemDescriptor @ {:?}", - self as *const _ + "GstMpegtsSatelliteDeliverySystemDescriptor @ {:p}", + self )) .field("frequency", &self.frequency) .field("orbital_position", &self.orbital_position) @@ -1722,7 +1674,7 @@ pub struct GstMpegtsSection { impl ::std::fmt::Debug for GstMpegtsSection { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsSection @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsSection @ {:p}", self)) .field("section_type", &self.section_type) .field("pid", &self.pid) .field("table_id", &self.table_id) @@ -1746,14 +1698,11 @@ pub struct GstMpegtsT2DeliverySystemCell { impl ::std::fmt::Debug for GstMpegtsT2DeliverySystemCell { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsT2DeliverySystemCell @ {:?}", - self as *const _ - )) - .field("cell_id", &self.cell_id) - .field("centre_frequencies", &self.centre_frequencies) - .field("sub_cells", &self.sub_cells) - .finish() + f.debug_struct(&format!("GstMpegtsT2DeliverySystemCell @ {:p}", self)) + .field("cell_id", &self.cell_id) + .field("centre_frequencies", &self.centre_frequencies) + .field("sub_cells", &self.sub_cells) + .finish() } } @@ -1767,8 +1716,8 @@ pub struct GstMpegtsT2DeliverySystemCellExtension { impl ::std::fmt::Debug for GstMpegtsT2DeliverySystemCellExtension { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( - "GstMpegtsT2DeliverySystemCellExtension @ {:?}", - self as *const _ + "GstMpegtsT2DeliverySystemCellExtension @ {:p}", + self )) .field("cell_id_extension", &self.cell_id_extension) .field("transposer_frequency", &self.transposer_frequency) @@ -1792,20 +1741,17 @@ pub struct GstMpegtsT2DeliverySystemDescriptor { impl ::std::fmt::Debug for GstMpegtsT2DeliverySystemDescriptor { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstMpegtsT2DeliverySystemDescriptor @ {:?}", - self as *const _ - )) - .field("plp_id", &self.plp_id) - .field("t2_system_id", &self.t2_system_id) - .field("siso_miso", &self.siso_miso) - .field("bandwidth", &self.bandwidth) - .field("guard_interval", &self.guard_interval) - .field("transmission_mode", &self.transmission_mode) - .field("other_frequency", &self.other_frequency) - .field("tfs", &self.tfs) - .field("cells", &self.cells) - .finish() + f.debug_struct(&format!("GstMpegtsT2DeliverySystemDescriptor @ {:p}", self)) + .field("plp_id", &self.plp_id) + .field("t2_system_id", &self.t2_system_id) + .field("siso_miso", &self.siso_miso) + .field("bandwidth", &self.bandwidth) + .field("guard_interval", &self.guard_interval) + .field("transmission_mode", &self.transmission_mode) + .field("other_frequency", &self.other_frequency) + .field("tfs", &self.tfs) + .field("cells", &self.cells) + .finish() } } @@ -1818,7 +1764,7 @@ pub struct GstMpegtsTOT { impl ::std::fmt::Debug for GstMpegtsTOT { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMpegtsTOT @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMpegtsTOT @ {:p}", self)) .field("utc_time", &self.utc_time) .field("descriptors", &self.descriptors) .finish() @@ -1845,8 +1791,8 @@ pub struct GstMpegtsTerrestrialDeliverySystemDescriptor { impl ::std::fmt::Debug for GstMpegtsTerrestrialDeliverySystemDescriptor { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( - "GstMpegtsTerrestrialDeliverySystemDescriptor @ {:?}", - self as *const _ + "GstMpegtsTerrestrialDeliverySystemDescriptor @ {:p}", + self )) .field("frequency", &self.frequency) .field("bandwidth", &self.bandwidth) diff --git a/gstreamer-mpegts/sys/tests/abi.rs b/gstreamer-mpegts/sys/tests/abi.rs index 045cfc792..63932b25f 100644 --- a/gstreamer-mpegts/sys/tests/abi.rs +++ b/gstreamer-mpegts/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/tests/constant.c b/gstreamer-mpegts/sys/tests/constant.c index 5d7b23044..bedbdac7b 100644 --- a/gstreamer-mpegts/sys/tests/constant.c +++ b/gstreamer-mpegts/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/tests/layout.c b/gstreamer-mpegts/sys/tests/layout.c index d2d166858..82afd3a20 100644 --- a/gstreamer-mpegts/sys/tests/layout.c +++ b/gstreamer-mpegts/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-net/src/auto/versions.txt +++ b/gstreamer-net/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-net/sys/build.rs b/gstreamer-net/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-net/sys/build.rs +++ b/gstreamer-net/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-net/sys/src/lib.rs b/gstreamer-net/sys/src/lib.rs index 231cffa92..4f352f7fc 100644 --- a/gstreamer-net/sys/src/lib.rs +++ b/gstreamer-net/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -51,7 +51,7 @@ pub struct GstNetAddressMeta { impl ::std::fmt::Debug for GstNetAddressMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstNetAddressMeta @ {:?}", self as *const _)) + f.debug_struct(&format!("GstNetAddressMeta @ {:p}", self)) .field("meta", &self.meta) .field("addr", &self.addr) .finish() @@ -67,7 +67,7 @@ pub struct GstNetClientClockClass { impl ::std::fmt::Debug for GstNetClientClockClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstNetClientClockClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstNetClientClockClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -87,13 +87,10 @@ pub struct GstNetControlMessageMeta { impl ::std::fmt::Debug for GstNetControlMessageMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstNetControlMessageMeta @ {:?}", - self as *const _ - )) - .field("meta", &self.meta) - .field("message", &self.message) - .finish() + f.debug_struct(&format!("GstNetControlMessageMeta @ {:p}", self)) + .field("meta", &self.meta) + .field("message", &self.message) + .finish() } } @@ -106,7 +103,7 @@ pub struct GstNetTimePacket { impl ::std::fmt::Debug for GstNetTimePacket { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstNetTimePacket @ {:?}", self as *const _)) + f.debug_struct(&format!("GstNetTimePacket @ {:p}", self)) .field("local_time", &self.local_time) .field("remote_time", &self.remote_time) .finish() @@ -122,7 +119,7 @@ pub struct GstNetTimeProviderClass { impl ::std::fmt::Debug for GstNetTimeProviderClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstNetTimeProviderClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstNetTimeProviderClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("_gst_reserved", &self._gst_reserved) .finish() @@ -143,7 +140,7 @@ pub struct GstNtpClockClass { impl ::std::fmt::Debug for GstNtpClockClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstNtpClockClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstNtpClockClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -158,7 +155,7 @@ pub struct GstPtpClockClass { impl ::std::fmt::Debug for GstPtpClockClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPtpClockClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPtpClockClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -180,7 +177,7 @@ pub struct GstNetClientClock { impl ::std::fmt::Debug for GstNetClientClock { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstNetClientClock @ {:?}", self as *const _)) + f.debug_struct(&format!("GstNetClientClock @ {:p}", self)) .field("clock", &self.clock) .finish() } @@ -196,7 +193,7 @@ pub struct GstNetTimeProvider { impl ::std::fmt::Debug for GstNetTimeProvider { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstNetTimeProvider @ {:?}", self as *const _)) + f.debug_struct(&format!("GstNetTimeProvider @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -212,7 +209,7 @@ pub struct GstNtpClock { impl ::std::fmt::Debug for GstNtpClock { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstNtpClock @ {:?}", self as *const _)) + f.debug_struct(&format!("GstNtpClock @ {:p}", self)) .field("clock", &self.clock) .finish() } @@ -228,7 +225,7 @@ pub struct GstPtpClock { impl ::std::fmt::Debug for GstPtpClock { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPtpClock @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPtpClock @ {:p}", self)) .field("clock", &self.clock) .finish() } diff --git a/gstreamer-net/sys/tests/abi.rs b/gstreamer-net/sys/tests/abi.rs index 8e2bcbd87..3956ca47f 100644 --- a/gstreamer-net/sys/tests/abi.rs +++ b/gstreamer-net/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-net/sys/tests/constant.c b/gstreamer-net/sys/tests/constant.c index 91130dd76..497f0675b 100644 --- a/gstreamer-net/sys/tests/constant.c +++ b/gstreamer-net/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-net/sys/tests/layout.c b/gstreamer-net/sys/tests/layout.c index 63cde05de..959973472 100644 --- a/gstreamer-net/sys/tests/layout.c +++ b/gstreamer-net/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-pbutils/src/auto/enums.rs b/gstreamer-pbutils/src/auto/enums.rs index a7066671e..94c3ad16e 100644 --- a/gstreamer-pbutils/src/auto/enums.rs +++ b/gstreamer-pbutils/src/auto/enums.rs @@ -51,12 +51,12 @@ impl FromGlib for DiscovererResult { unsafe fn from_glib(value: ffi::GstDiscovererResult) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Ok, - 1 => Self::UriInvalid, - 2 => Self::Error, - 3 => Self::Timeout, - 4 => Self::Busy, - 5 => Self::MissingPlugins, + ffi::GST_DISCOVERER_OK => Self::Ok, + ffi::GST_DISCOVERER_URI_INVALID => Self::UriInvalid, + ffi::GST_DISCOVERER_ERROR => Self::Error, + ffi::GST_DISCOVERER_TIMEOUT => Self::Timeout, + ffi::GST_DISCOVERER_BUSY => Self::Busy, + ffi::GST_DISCOVERER_MISSING_PLUGINS => Self::MissingPlugins, value => Self::__Unknown(value), } } diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-pbutils/src/auto/versions.txt +++ b/gstreamer-pbutils/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-pbutils/sys/build.rs b/gstreamer-pbutils/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-pbutils/sys/build.rs +++ b/gstreamer-pbutils/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-pbutils/sys/src/lib.rs b/gstreamer-pbutils/sys/src/lib.rs index 2e4f99421..212f794c7 100644 --- a/gstreamer-pbutils/sys/src/lib.rs +++ b/gstreamer-pbutils/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -118,7 +118,7 @@ pub struct GstAudioVisualizerClass { impl ::std::fmt::Debug for GstAudioVisualizerClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioVisualizerClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioVisualizerClass @ {:p}", self)) .field("setup", &self.setup) .field("render", &self.render) .field("decide_allocation", &self.decide_allocation) @@ -146,7 +146,7 @@ pub struct GstDiscovererClass { impl ::std::fmt::Debug for GstDiscovererClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDiscovererClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDiscovererClass @ {:p}", self)) .field("parentclass", &self.parentclass) .field("finished", &self.finished) .field("starting", &self.starting) @@ -187,11 +187,8 @@ pub struct GstInstallPluginsContext(c_void); impl ::std::fmt::Debug for GstInstallPluginsContext { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstInstallPluginsContext @ {:?}", - self as *const _ - )) - .finish() + f.debug_struct(&format!("GstInstallPluginsContext @ {:p}", self)) + .finish() } } @@ -208,7 +205,7 @@ pub struct GstAudioVisualizer { impl ::std::fmt::Debug for GstAudioVisualizer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAudioVisualizer @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAudioVisualizer @ {:p}", self)) .field("parent", &self.parent) .field("req_spf", &self.req_spf) .field("vinfo", &self.vinfo) @@ -227,7 +224,7 @@ pub struct GstDiscoverer { impl ::std::fmt::Debug for GstDiscoverer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDiscoverer @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDiscoverer @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -238,7 +235,7 @@ pub struct GstDiscovererAudioInfo(c_void); impl ::std::fmt::Debug for GstDiscovererAudioInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDiscovererAudioInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDiscovererAudioInfo @ {:p}", self)) .finish() } } @@ -248,11 +245,8 @@ pub struct GstDiscovererContainerInfo(c_void); impl ::std::fmt::Debug for GstDiscovererContainerInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstDiscovererContainerInfo @ {:?}", - self as *const _ - )) - .finish() + f.debug_struct(&format!("GstDiscovererContainerInfo @ {:p}", self)) + .finish() } } @@ -261,7 +255,7 @@ pub struct GstDiscovererInfo(c_void); impl ::std::fmt::Debug for GstDiscovererInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDiscovererInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDiscovererInfo @ {:p}", self)) .finish() } } @@ -271,7 +265,7 @@ pub struct GstDiscovererStreamInfo(c_void); impl ::std::fmt::Debug for GstDiscovererStreamInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDiscovererStreamInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDiscovererStreamInfo @ {:p}", self)) .finish() } } @@ -281,11 +275,8 @@ pub struct GstDiscovererSubtitleInfo(c_void); impl ::std::fmt::Debug for GstDiscovererSubtitleInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstDiscovererSubtitleInfo @ {:?}", - self as *const _ - )) - .finish() + f.debug_struct(&format!("GstDiscovererSubtitleInfo @ {:p}", self)) + .finish() } } @@ -294,7 +285,7 @@ pub struct GstDiscovererVideoInfo(c_void); impl ::std::fmt::Debug for GstDiscovererVideoInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDiscovererVideoInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDiscovererVideoInfo @ {:p}", self)) .finish() } } @@ -304,7 +295,7 @@ pub struct GstEncodingAudioProfile(c_void); impl ::std::fmt::Debug for GstEncodingAudioProfile { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstEncodingAudioProfile @ {:?}", self as *const _)) + f.debug_struct(&format!("GstEncodingAudioProfile @ {:p}", self)) .finish() } } @@ -314,11 +305,8 @@ pub struct GstEncodingContainerProfile(c_void); impl ::std::fmt::Debug for GstEncodingContainerProfile { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstEncodingContainerProfile @ {:?}", - self as *const _ - )) - .finish() + f.debug_struct(&format!("GstEncodingContainerProfile @ {:p}", self)) + .finish() } } @@ -327,7 +315,7 @@ pub struct GstEncodingProfile(c_void); impl ::std::fmt::Debug for GstEncodingProfile { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstEncodingProfile @ {:?}", self as *const _)) + f.debug_struct(&format!("GstEncodingProfile @ {:p}", self)) .finish() } } @@ -337,7 +325,7 @@ pub struct GstEncodingTarget(c_void); impl ::std::fmt::Debug for GstEncodingTarget { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstEncodingTarget @ {:?}", self as *const _)) + f.debug_struct(&format!("GstEncodingTarget @ {:p}", self)) .finish() } } @@ -347,7 +335,7 @@ pub struct GstEncodingVideoProfile(c_void); impl ::std::fmt::Debug for GstEncodingVideoProfile { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstEncodingVideoProfile @ {:?}", self as *const _)) + f.debug_struct(&format!("GstEncodingVideoProfile @ {:p}", self)) .finish() } } diff --git a/gstreamer-pbutils/sys/tests/abi.rs b/gstreamer-pbutils/sys/tests/abi.rs index 59397ed84..8d41492bd 100644 --- a/gstreamer-pbutils/sys/tests/abi.rs +++ b/gstreamer-pbutils/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-pbutils/sys/tests/constant.c b/gstreamer-pbutils/sys/tests/constant.c index c97f00e1d..4720e3c50 100644 --- a/gstreamer-pbutils/sys/tests/constant.c +++ b/gstreamer-pbutils/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-pbutils/sys/tests/layout.c b/gstreamer-pbutils/sys/tests/layout.c index 3d83b4e93..7429d6722 100644 --- a/gstreamer-pbutils/sys/tests/layout.c +++ b/gstreamer-pbutils/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-player/src/auto/enums.rs b/gstreamer-player/src/auto/enums.rs index b9849e991..d174684c4 100644 --- a/gstreamer-player/src/auto/enums.rs +++ b/gstreamer-player/src/auto/enums.rs @@ -60,10 +60,10 @@ impl FromGlib for PlayerColorBalanceType { unsafe fn from_glib(value: ffi::GstPlayerColorBalanceType) -> Self { skip_assert_initialized!(); match value { - 3 => Self::Hue, - 0 => Self::Brightness, - 2 => Self::Saturation, - 1 => Self::Contrast, + ffi::GST_PLAYER_COLOR_BALANCE_HUE => Self::Hue, + ffi::GST_PLAYER_COLOR_BALANCE_BRIGHTNESS => Self::Brightness, + ffi::GST_PLAYER_COLOR_BALANCE_SATURATION => Self::Saturation, + ffi::GST_PLAYER_COLOR_BALANCE_CONTRAST => Self::Contrast, value => Self::__Unknown(value), } } @@ -138,7 +138,7 @@ impl FromGlib for PlayerError { unsafe fn from_glib(value: ffi::GstPlayerError) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Failed, + ffi::GST_PLAYER_ERROR_FAILED => Self::Failed, value => Self::__Unknown(value), } } @@ -158,7 +158,7 @@ impl ErrorDomain for PlayerError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 0 => Some(Self::Failed), + ffi::GST_PLAYER_ERROR_FAILED => Some(Self::Failed), _ => Some(Self::Failed), } } @@ -236,11 +236,11 @@ impl FromGlib for PlayerSnapshotFormat { unsafe fn from_glib(value: ffi::GstPlayerSnapshotFormat) -> Self { skip_assert_initialized!(); match value { - 0 => Self::RawNative, - 1 => Self::RawXrgb, - 2 => Self::RawBgrx, - 3 => Self::Jpg, - 4 => Self::Png, + ffi::GST_PLAYER_THUMBNAIL_RAW_NATIVE => Self::RawNative, + ffi::GST_PLAYER_THUMBNAIL_RAW_xRGB => Self::RawXrgb, + ffi::GST_PLAYER_THUMBNAIL_RAW_BGRx => Self::RawBgrx, + ffi::GST_PLAYER_THUMBNAIL_JPG => Self::Jpg, + ffi::GST_PLAYER_THUMBNAIL_PNG => Self::Png, value => Self::__Unknown(value), } } @@ -291,10 +291,10 @@ impl FromGlib for PlayerState { unsafe fn from_glib(value: ffi::GstPlayerState) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Stopped, - 1 => Self::Buffering, - 2 => Self::Paused, - 3 => Self::Playing, + ffi::GST_PLAYER_STATE_STOPPED => Self::Stopped, + ffi::GST_PLAYER_STATE_BUFFERING => Self::Buffering, + ffi::GST_PLAYER_STATE_PAUSED => Self::Paused, + ffi::GST_PLAYER_STATE_PLAYING => Self::Playing, value => Self::__Unknown(value), } } diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-player/src/auto/versions.txt +++ b/gstreamer-player/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-player/sys/build.rs b/gstreamer-player/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-player/sys/build.rs +++ b/gstreamer-player/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-player/sys/src/lib.rs b/gstreamer-player/sys/src/lib.rs index ce62e9d87..c627525b0 100644 --- a/gstreamer-player/sys/src/lib.rs +++ b/gstreamer-player/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -91,13 +91,10 @@ pub struct GstPlayerSignalDispatcherInterface { impl ::std::fmt::Debug for GstPlayerSignalDispatcherInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstPlayerSignalDispatcherInterface @ {:?}", - self as *const _ - )) - .field("parent_iface", &self.parent_iface) - .field("dispatch", &self.dispatch) - .finish() + f.debug_struct(&format!("GstPlayerSignalDispatcherInterface @ {:p}", self)) + .field("parent_iface", &self.parent_iface) + .field("dispatch", &self.dispatch) + .finish() } } @@ -132,13 +129,10 @@ pub struct GstPlayerVideoRendererInterface { impl ::std::fmt::Debug for GstPlayerVideoRendererInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstPlayerVideoRendererInterface @ {:?}", - self as *const _ - )) - .field("parent_iface", &self.parent_iface) - .field("create_video_sink", &self.create_video_sink) - .finish() + f.debug_struct(&format!("GstPlayerVideoRendererInterface @ {:p}", self)) + .field("parent_iface", &self.parent_iface) + .field("create_video_sink", &self.create_video_sink) + .finish() } } @@ -151,7 +145,7 @@ pub struct GstPlayerVisualization { impl ::std::fmt::Debug for GstPlayerVisualization { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPlayerVisualization @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPlayerVisualization @ {:p}", self)) .field("name", &self.name) .field("description", &self.description) .finish() @@ -164,8 +158,7 @@ pub struct GstPlayer(c_void); impl ::std::fmt::Debug for GstPlayer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPlayer @ {:?}", self as *const _)) - .finish() + f.debug_struct(&format!("GstPlayer @ {:p}", self)).finish() } } @@ -174,7 +167,7 @@ pub struct GstPlayerAudioInfo(c_void); impl ::std::fmt::Debug for GstPlayerAudioInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPlayerAudioInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPlayerAudioInfo @ {:p}", self)) .finish() } } @@ -185,8 +178,8 @@ pub struct GstPlayerGMainContextSignalDispatcher(c_void); impl ::std::fmt::Debug for GstPlayerGMainContextSignalDispatcher { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( - "GstPlayerGMainContextSignalDispatcher @ {:?}", - self as *const _ + "GstPlayerGMainContextSignalDispatcher @ {:p}", + self )) .finish() } @@ -197,7 +190,7 @@ pub struct GstPlayerMediaInfo(c_void); impl ::std::fmt::Debug for GstPlayerMediaInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPlayerMediaInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPlayerMediaInfo @ {:p}", self)) .finish() } } @@ -207,7 +200,7 @@ pub struct GstPlayerStreamInfo(c_void); impl ::std::fmt::Debug for GstPlayerStreamInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPlayerStreamInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPlayerStreamInfo @ {:p}", self)) .finish() } } @@ -217,7 +210,7 @@ pub struct GstPlayerSubtitleInfo(c_void); impl ::std::fmt::Debug for GstPlayerSubtitleInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPlayerSubtitleInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPlayerSubtitleInfo @ {:p}", self)) .finish() } } @@ -227,7 +220,7 @@ pub struct GstPlayerVideoInfo(c_void); impl ::std::fmt::Debug for GstPlayerVideoInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPlayerVideoInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPlayerVideoInfo @ {:p}", self)) .finish() } } @@ -237,11 +230,8 @@ pub struct GstPlayerVideoOverlayVideoRenderer(c_void); impl ::std::fmt::Debug for GstPlayerVideoOverlayVideoRenderer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstPlayerVideoOverlayVideoRenderer @ {:?}", - self as *const _ - )) - .finish() + f.debug_struct(&format!("GstPlayerVideoOverlayVideoRenderer @ {:p}", self)) + .finish() } } @@ -251,7 +241,7 @@ pub struct GstPlayerSignalDispatcher(c_void); impl ::std::fmt::Debug for GstPlayerSignalDispatcher { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GstPlayerSignalDispatcher @ {:?}", self as *const _) + write!(f, "GstPlayerSignalDispatcher @ {:p}", self) } } @@ -260,7 +250,7 @@ pub struct GstPlayerVideoRenderer(c_void); impl ::std::fmt::Debug for GstPlayerVideoRenderer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GstPlayerVideoRenderer @ {:?}", self as *const _) + write!(f, "GstPlayerVideoRenderer @ {:p}", self) } } diff --git a/gstreamer-player/sys/tests/abi.rs b/gstreamer-player/sys/tests/abi.rs index 7568b3ec1..26de2e060 100644 --- a/gstreamer-player/sys/tests/abi.rs +++ b/gstreamer-player/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-player/sys/tests/constant.c b/gstreamer-player/sys/tests/constant.c index f3e29a224..b4d0f0daa 100644 --- a/gstreamer-player/sys/tests/constant.c +++ b/gstreamer-player/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-player/sys/tests/layout.c b/gstreamer-player/sys/tests/layout.c index 930731174..86cf750da 100644 --- a/gstreamer-player/sys/tests/layout.c +++ b/gstreamer-player/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtp/src/auto/enums.rs b/gstreamer-rtp/src/auto/enums.rs index df8b3cc6c..7e0b12b5f 100644 --- a/gstreamer-rtp/src/auto/enums.rs +++ b/gstreamer-rtp/src/auto/enums.rs @@ -60,15 +60,15 @@ impl FromGlib for RTCPFBType { unsafe fn from_glib(value: ffi::GstRTCPFBType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::FbTypeInvalid, - 1 => Self::RtpfbTypeNack, - 3 => Self::RtpfbTypeTmmbr, - 4 => Self::RtpfbTypeTmmbn, - 5 => Self::RtpfbTypeRtcpSrReq, - 15 => Self::RtpfbTypeTwcc, - 2 => Self::PsfbTypeSli, - 6 => Self::PsfbTypeTstn, - 7 => Self::PsfbTypeVbcn, + ffi::GST_RTCP_FB_TYPE_INVALID => Self::FbTypeInvalid, + ffi::GST_RTCP_RTPFB_TYPE_NACK => Self::RtpfbTypeNack, + ffi::GST_RTCP_RTPFB_TYPE_TMMBR => Self::RtpfbTypeTmmbr, + ffi::GST_RTCP_RTPFB_TYPE_TMMBN => Self::RtpfbTypeTmmbn, + ffi::GST_RTCP_RTPFB_TYPE_RTCP_SR_REQ => Self::RtpfbTypeRtcpSrReq, + ffi::GST_RTCP_RTPFB_TYPE_TWCC => Self::RtpfbTypeTwcc, + ffi::GST_RTCP_PSFB_TYPE_SLI => Self::PsfbTypeSli, + ffi::GST_RTCP_PSFB_TYPE_TSTN => Self::PsfbTypeTstn, + ffi::GST_RTCP_PSFB_TYPE_VBCN => Self::PsfbTypeVbcn, value => Self::__Unknown(value), } } @@ -161,16 +161,16 @@ impl FromGlib for RTCPSDESType { unsafe fn from_glib(value: ffi::GstRTCPSDESType) -> Self { skip_assert_initialized!(); match value { - -1 => Self::Invalid, - 0 => Self::End, - 1 => Self::Cname, - 2 => Self::Name, - 3 => Self::Email, - 4 => Self::Phone, - 5 => Self::Loc, - 6 => Self::Tool, - 7 => Self::Note, - 8 => Self::Priv, + ffi::GST_RTCP_SDES_INVALID => Self::Invalid, + ffi::GST_RTCP_SDES_END => Self::End, + ffi::GST_RTCP_SDES_CNAME => Self::Cname, + ffi::GST_RTCP_SDES_NAME => Self::Name, + ffi::GST_RTCP_SDES_EMAIL => Self::Email, + ffi::GST_RTCP_SDES_PHONE => Self::Phone, + ffi::GST_RTCP_SDES_LOC => Self::Loc, + ffi::GST_RTCP_SDES_TOOL => Self::Tool, + ffi::GST_RTCP_SDES_NOTE => Self::Note, + ffi::GST_RTCP_SDES_PRIV => Self::Priv, value => Self::__Unknown(value), } } @@ -260,15 +260,15 @@ impl FromGlib for RTCPType { unsafe fn from_glib(value: ffi::GstRTCPType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Invalid, - 200 => Self::Sr, - 201 => Self::Rr, - 202 => Self::Sdes, - 203 => Self::Bye, - 204 => Self::App, - 205 => Self::Rtpfb, - 206 => Self::Psfb, - 207 => Self::Xr, + ffi::GST_RTCP_TYPE_INVALID => Self::Invalid, + ffi::GST_RTCP_TYPE_SR => Self::Sr, + ffi::GST_RTCP_TYPE_RR => Self::Rr, + ffi::GST_RTCP_TYPE_SDES => Self::Sdes, + ffi::GST_RTCP_TYPE_BYE => Self::Bye, + ffi::GST_RTCP_TYPE_APP => Self::App, + ffi::GST_RTCP_TYPE_RTPFB => Self::Rtpfb, + ffi::GST_RTCP_TYPE_PSFB => Self::Psfb, + ffi::GST_RTCP_TYPE_XR => Self::Xr, value => Self::__Unknown(value), } } @@ -361,14 +361,14 @@ impl FromGlib for RTCPXRType { unsafe fn from_glib(value: ffi::GstRTCPXRType) -> Self { skip_assert_initialized!(); match value { - -1 => Self::Invalid, - 1 => Self::Lrle, - 2 => Self::Drle, - 3 => Self::Prt, - 4 => Self::Rrt, - 5 => Self::Dlrr, - 6 => Self::Ssumm, - 7 => Self::VoipMetrics, + ffi::GST_RTCP_XR_TYPE_INVALID => Self::Invalid, + ffi::GST_RTCP_XR_TYPE_LRLE => Self::Lrle, + ffi::GST_RTCP_XR_TYPE_DRLE => Self::Drle, + ffi::GST_RTCP_XR_TYPE_PRT => Self::Prt, + ffi::GST_RTCP_XR_TYPE_RRT => Self::Rrt, + ffi::GST_RTCP_XR_TYPE_DLRR => Self::Dlrr, + ffi::GST_RTCP_XR_TYPE_SSUMM => Self::Ssumm, + ffi::GST_RTCP_XR_TYPE_VOIP_METRICS => Self::VoipMetrics, value => Self::__Unknown(value), } } @@ -517,32 +517,32 @@ impl FromGlib for RTPPayload { unsafe fn from_glib(value: ffi::GstRTPPayload) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Pcmu, - 1 => Self::_1016, - 2 => Self::G721, - 3 => Self::Gsm, - 4 => Self::G723, - 5 => Self::Dvi48000, - 6 => Self::Dvi416000, - 7 => Self::Lpc, - 8 => Self::Pcma, - 9 => Self::G722, - 10 => Self::L16Stereo, - 11 => Self::L16Mono, - 12 => Self::Qcelp, - 13 => Self::Cn, - 14 => Self::Mpa, - 15 => Self::G728, - 16 => Self::Dvi411025, - 17 => Self::Dvi422050, - 18 => Self::G729, - 25 => Self::Cellb, - 26 => Self::Jpeg, - 28 => Self::Nv, - 31 => Self::H261, - 32 => Self::Mpv, - 33 => Self::Mp2t, - 34 => Self::H263, + ffi::GST_RTP_PAYLOAD_PCMU => Self::Pcmu, + ffi::GST_RTP_PAYLOAD_1016 => Self::_1016, + ffi::GST_RTP_PAYLOAD_G721 => Self::G721, + ffi::GST_RTP_PAYLOAD_GSM => Self::Gsm, + ffi::GST_RTP_PAYLOAD_G723 => Self::G723, + ffi::GST_RTP_PAYLOAD_DVI4_8000 => Self::Dvi48000, + ffi::GST_RTP_PAYLOAD_DVI4_16000 => Self::Dvi416000, + ffi::GST_RTP_PAYLOAD_LPC => Self::Lpc, + ffi::GST_RTP_PAYLOAD_PCMA => Self::Pcma, + ffi::GST_RTP_PAYLOAD_G722 => Self::G722, + ffi::GST_RTP_PAYLOAD_L16_STEREO => Self::L16Stereo, + ffi::GST_RTP_PAYLOAD_L16_MONO => Self::L16Mono, + ffi::GST_RTP_PAYLOAD_QCELP => Self::Qcelp, + ffi::GST_RTP_PAYLOAD_CN => Self::Cn, + ffi::GST_RTP_PAYLOAD_MPA => Self::Mpa, + ffi::GST_RTP_PAYLOAD_G728 => Self::G728, + ffi::GST_RTP_PAYLOAD_DVI4_11025 => Self::Dvi411025, + ffi::GST_RTP_PAYLOAD_DVI4_22050 => Self::Dvi422050, + ffi::GST_RTP_PAYLOAD_G729 => Self::G729, + ffi::GST_RTP_PAYLOAD_CELLB => Self::Cellb, + ffi::GST_RTP_PAYLOAD_JPEG => Self::Jpeg, + ffi::GST_RTP_PAYLOAD_NV => Self::Nv, + ffi::GST_RTP_PAYLOAD_H261 => Self::H261, + ffi::GST_RTP_PAYLOAD_MPV => Self::Mpv, + ffi::GST_RTP_PAYLOAD_MP2T => Self::Mp2t, + ffi::GST_RTP_PAYLOAD_H263 => Self::H263, value => Self::__Unknown(value), } } @@ -620,11 +620,11 @@ impl FromGlib for RTPProfile { unsafe fn from_glib(value: ffi::GstRTPProfile) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Unknown, - 1 => Self::Avp, - 2 => Self::Savp, - 3 => Self::Avpf, - 4 => Self::Savpf, + ffi::GST_RTP_PROFILE_UNKNOWN => Self::Unknown, + ffi::GST_RTP_PROFILE_AVP => Self::Avp, + ffi::GST_RTP_PROFILE_SAVP => Self::Savp, + ffi::GST_RTP_PROFILE_AVPF => Self::Avpf, + ffi::GST_RTP_PROFILE_SAVPF => Self::Savpf, value => Self::__Unknown(value), } } diff --git a/gstreamer-rtp/src/auto/versions.txt b/gstreamer-rtp/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-rtp/src/auto/versions.txt +++ b/gstreamer-rtp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-rtp/sys/build.rs b/gstreamer-rtp/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-rtp/sys/build.rs +++ b/gstreamer-rtp/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtp/sys/src/lib.rs b/gstreamer-rtp/sys/src/lib.rs index 3f8a0e998..f2b3d94f5 100644 --- a/gstreamer-rtp/sys/src/lib.rs +++ b/gstreamer-rtp/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -184,7 +184,7 @@ pub struct GstRTCPBuffer { impl ::std::fmt::Debug for GstRTCPBuffer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTCPBuffer @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTCPBuffer @ {:p}", self)) .field("buffer", &self.buffer) .field("map", &self.map) .finish() @@ -207,7 +207,7 @@ pub struct GstRTCPPacket { impl ::std::fmt::Debug for GstRTCPPacket { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTCPPacket @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTCPPacket @ {:p}", self)) .field("rtcp", &self.rtcp) .field("offset", &self.offset) .finish() @@ -223,12 +223,9 @@ pub struct GstRTPBaseAudioPayloadClass { impl ::std::fmt::Debug for GstRTPBaseAudioPayloadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstRTPBaseAudioPayloadClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .finish() + f.debug_struct(&format!("GstRTPBaseAudioPayloadClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .finish() } } @@ -258,17 +255,14 @@ pub struct GstRTPBaseDepayloadClass { impl ::std::fmt::Debug for GstRTPBaseDepayloadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstRTPBaseDepayloadClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .field("set_caps", &self.set_caps) - .field("process", &self.process) - .field("packet_lost", &self.packet_lost) - .field("handle_event", &self.handle_event) - .field("process_rtp_packet", &self.process_rtp_packet) - .finish() + f.debug_struct(&format!("GstRTPBaseDepayloadClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .field("set_caps", &self.set_caps) + .field("process", &self.process) + .field("packet_lost", &self.packet_lost) + .field("handle_event", &self.handle_event) + .field("process_rtp_packet", &self.process_rtp_packet) + .finish() } } @@ -309,7 +303,7 @@ pub struct GstRTPBasePayloadClass { impl ::std::fmt::Debug for GstRTPBasePayloadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTPBasePayloadClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTPBasePayloadClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("get_caps", &self.get_caps) .field("set_caps", &self.set_caps) @@ -338,7 +332,7 @@ pub struct GstRTPBuffer { impl ::std::fmt::Debug for GstRTPBuffer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTPBuffer @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTPBuffer @ {:p}", self)) .field("buffer", &self.buffer) .field("state", &self.state) .field("data", &self.data) @@ -362,7 +356,7 @@ pub struct GstRTPPayloadInfo { impl ::std::fmt::Debug for GstRTPPayloadInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTPPayloadInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTPPayloadInfo @ {:p}", self)) .field("payload_type", &self.payload_type) .field("media", &self.media) .field("encoding_name", &self.encoding_name) @@ -385,7 +379,7 @@ pub struct GstRTPSourceMeta { impl ::std::fmt::Debug for GstRTPSourceMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTPSourceMeta @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTPSourceMeta @ {:p}", self)) .field("meta", &self.meta) .field("ssrc", &self.ssrc) .field("ssrc_valid", &self.ssrc_valid) @@ -410,7 +404,7 @@ pub struct GstRTPBaseAudioPayload { impl ::std::fmt::Debug for GstRTPBaseAudioPayload { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTPBaseAudioPayload @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTPBaseAudioPayload @ {:p}", self)) .field("payload", &self.payload) .field("priv_", &self.priv_) .field("base_ts", &self.base_ts) @@ -436,7 +430,7 @@ pub struct GstRTPBaseDepayload { impl ::std::fmt::Debug for GstRTPBaseDepayload { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTPBaseDepayload @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTPBaseDepayload @ {:p}", self)) .field("parent", &self.parent) .field("sinkpad", &self.sinkpad) .field("srcpad", &self.srcpad) @@ -478,7 +472,7 @@ pub struct GstRTPBasePayload { impl ::std::fmt::Debug for GstRTPBasePayload { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTPBasePayload @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTPBasePayload @ {:p}", self)) .field("element", &self.element) .finish() } diff --git a/gstreamer-rtp/sys/tests/abi.rs b/gstreamer-rtp/sys/tests/abi.rs index 64331557d..05f199463 100644 --- a/gstreamer-rtp/sys/tests/abi.rs +++ b/gstreamer-rtp/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtp/sys/tests/constant.c b/gstreamer-rtp/sys/tests/constant.c index 95d99d100..acfaee7e7 100644 --- a/gstreamer-rtp/sys/tests/constant.c +++ b/gstreamer-rtp/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtp/sys/tests/layout.c b/gstreamer-rtp/sys/tests/layout.c index afab2cc8e..6ee852d9e 100644 --- a/gstreamer-rtp/sys/tests/layout.c +++ b/gstreamer-rtp/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/src/auto/enums.rs b/gstreamer-rtsp-server/src/auto/enums.rs index c6bf4b24b..8644f9f12 100644 --- a/gstreamer-rtsp-server/src/auto/enums.rs +++ b/gstreamer-rtsp-server/src/auto/enums.rs @@ -48,11 +48,11 @@ impl FromGlib for RTSPAddressPoolResult { unsafe fn from_glib(value: ffi::GstRTSPAddressPoolResult) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Ok, - -1 => Self::Einval, - -2 => Self::Ereserved, - -3 => Self::Erange, - -4 => Self::Elast, + ffi::GST_RTSP_ADDRESS_POOL_OK => Self::Ok, + ffi::GST_RTSP_ADDRESS_POOL_EINVAL => Self::Einval, + ffi::GST_RTSP_ADDRESS_POOL_ERESERVED => Self::Ereserved, + ffi::GST_RTSP_ADDRESS_POOL_ERANGE => Self::Erange, + ffi::GST_RTSP_ADDRESS_POOL_ELAST => Self::Elast, value => Self::__Unknown(value), } } @@ -91,9 +91,9 @@ impl FromGlib for RTSPFilterResult { unsafe fn from_glib(value: ffi::GstRTSPFilterResult) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Remove, - 1 => Self::Keep, - 2 => Self::Ref, + ffi::GST_RTSP_FILTER_REMOVE => Self::Remove, + ffi::GST_RTSP_FILTER_KEEP => Self::Keep, + ffi::GST_RTSP_FILTER_REF => Self::Ref, value => Self::__Unknown(value), } } @@ -141,12 +141,12 @@ impl FromGlib for RTSPMediaStatus { unsafe fn from_glib(value: ffi::GstRTSPMediaStatus) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Unprepared, - 1 => Self::Unpreparing, - 2 => Self::Preparing, - 3 => Self::Prepared, - 4 => Self::Suspended, - 5 => Self::Error, + ffi::GST_RTSP_MEDIA_STATUS_UNPREPARED => Self::Unprepared, + ffi::GST_RTSP_MEDIA_STATUS_UNPREPARING => Self::Unpreparing, + ffi::GST_RTSP_MEDIA_STATUS_PREPARING => Self::Preparing, + ffi::GST_RTSP_MEDIA_STATUS_PREPARED => Self::Prepared, + ffi::GST_RTSP_MEDIA_STATUS_SUSPENDED => Self::Suspended, + ffi::GST_RTSP_MEDIA_STATUS_ERROR => Self::Error, value => Self::__Unknown(value), } } @@ -185,9 +185,9 @@ impl FromGlib for RTSPPublishClockMode { unsafe fn from_glib(value: ffi::GstRTSPPublishClockMode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Clock, - 2 => Self::ClockAndOffset, + ffi::GST_RTSP_PUBLISH_CLOCK_MODE_NONE => Self::None, + ffi::GST_RTSP_PUBLISH_CLOCK_MODE_CLOCK => Self::Clock, + ffi::GST_RTSP_PUBLISH_CLOCK_MODE_CLOCK_AND_OFFSET => Self::ClockAndOffset, value => Self::__Unknown(value), } } @@ -259,9 +259,9 @@ impl FromGlib for RTSPSuspendMode { unsafe fn from_glib(value: ffi::GstRTSPSuspendMode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Pause, - 2 => Self::Reset, + ffi::GST_RTSP_SUSPEND_MODE_NONE => Self::None, + ffi::GST_RTSP_SUSPEND_MODE_PAUSE => Self::Pause, + ffi::GST_RTSP_SUSPEND_MODE_RESET => Self::Reset, value => Self::__Unknown(value), } } @@ -330,8 +330,8 @@ impl FromGlib for RTSPThreadType { unsafe fn from_glib(value: ffi::GstRTSPThreadType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Client, - 1 => Self::Media, + ffi::GST_RTSP_THREAD_TYPE_CLIENT => Self::Client, + ffi::GST_RTSP_THREAD_TYPE_MEDIA => Self::Media, value => Self::__Unknown(value), } } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs index 6b98bbba1..8affbf3f9 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs @@ -902,7 +902,7 @@ impl> RTSPStreamExt for O { fn recv_rtcp(&self, buffer: &gst::Buffer) -> Result { unsafe { - gst::FlowSuccess::try_from_glib(ffi::gst_rtsp_stream_recv_rtcp( + try_from_glib(ffi::gst_rtsp_stream_recv_rtcp( self.as_ref().to_glib_none().0, buffer.to_glib_full(), )) @@ -911,7 +911,7 @@ impl> RTSPStreamExt for O { fn recv_rtp(&self, buffer: &gst::Buffer) -> Result { unsafe { - gst::FlowSuccess::try_from_glib(ffi::gst_rtsp_stream_recv_rtp( + try_from_glib(ffi::gst_rtsp_stream_recv_rtp( self.as_ref().to_glib_none().0, buffer.to_glib_full(), )) diff --git a/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs index 5af66ff11..5390bf2d5 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs @@ -166,7 +166,7 @@ impl> RTSPStreamTransportExt for O { buffer: &gst::Buffer, ) -> Result { unsafe { - gst::FlowSuccess::try_from_glib(ffi::gst_rtsp_stream_transport_recv_data( + try_from_glib(ffi::gst_rtsp_stream_transport_recv_data( self.as_ref().to_glib_none().0, channel, buffer.to_glib_full(), diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-rtsp-server/src/auto/versions.txt +++ b/gstreamer-rtsp-server/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-rtsp-server/sys/build.rs b/gstreamer-rtsp-server/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-rtsp-server/sys/build.rs +++ b/gstreamer-rtsp-server/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/sys/src/lib.rs b/gstreamer-rtsp-server/sys/src/lib.rs index e71fc7d75..bc5c26fdc 100644 --- a/gstreamer-rtsp-server/sys/src/lib.rs +++ b/gstreamer-rtsp-server/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -174,7 +174,7 @@ pub struct GstRTSPAddress { impl ::std::fmt::Debug for GstRTSPAddress { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPAddress @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPAddress @ {:p}", self)) .field("pool", &self.pool) .field("address", &self.address) .field("port", &self.port) @@ -193,7 +193,7 @@ pub struct GstRTSPAddressPoolClass { impl ::std::fmt::Debug for GstRTSPAddressPoolClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPAddressPoolClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPAddressPoolClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -228,7 +228,7 @@ pub struct GstRTSPAuthClass { impl ::std::fmt::Debug for GstRTSPAuthClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPAuthClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPAuthClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("authenticate", &self.authenticate) .field("check", &self.check) @@ -403,7 +403,7 @@ pub struct GstRTSPClientClass { impl ::std::fmt::Debug for GstRTSPClientClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPClientClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPClientClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("create_sdp", &self.create_sdp) .field("configure_client_media", &self.configure_client_media) @@ -475,7 +475,7 @@ pub struct GstRTSPContext { impl ::std::fmt::Debug for GstRTSPContext { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPContext @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPContext @ {:p}", self)) .field("server", &self.server) .field("conn", &self.conn) .field("client", &self.client) @@ -537,7 +537,7 @@ pub struct GstRTSPMediaClass { impl ::std::fmt::Debug for GstRTSPMediaClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPMediaClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPMediaClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("handle_message", &self.handle_message) .field("prepare", &self.prepare) @@ -592,19 +592,16 @@ pub struct GstRTSPMediaFactoryClass { impl ::std::fmt::Debug for GstRTSPMediaFactoryClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstRTSPMediaFactoryClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .field("gen_key", &self.gen_key) - .field("create_element", &self.create_element) - .field("construct", &self.construct) - .field("create_pipeline", &self.create_pipeline) - .field("configure", &self.configure) - .field("media_constructed", &self.media_constructed) - .field("media_configure", &self.media_configure) - .finish() + f.debug_struct(&format!("GstRTSPMediaFactoryClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .field("gen_key", &self.gen_key) + .field("create_element", &self.create_element) + .field("construct", &self.construct) + .field("create_pipeline", &self.create_pipeline) + .field("configure", &self.configure) + .field("media_constructed", &self.media_constructed) + .field("media_configure", &self.media_configure) + .finish() } } @@ -622,12 +619,9 @@ pub struct GstRTSPMediaFactoryURIClass { impl ::std::fmt::Debug for GstRTSPMediaFactoryURIClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstRTSPMediaFactoryURIClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .finish() + f.debug_struct(&format!("GstRTSPMediaFactoryURIClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .finish() } } @@ -653,7 +647,7 @@ pub struct GstRTSPMountPointsClass { impl ::std::fmt::Debug for GstRTSPMountPointsClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPMountPointsClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPMountPointsClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("make_path", &self.make_path) .finish() @@ -674,7 +668,7 @@ pub struct GstRTSPOnvifClientClass { impl ::std::fmt::Debug for GstRTSPOnvifClientClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPOnvifClientClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPOnvifClientClass @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -689,7 +683,7 @@ pub struct GstRTSPOnvifMediaClass { impl ::std::fmt::Debug for GstRTSPOnvifMediaClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPOnvifMediaClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPOnvifMediaClass @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -706,13 +700,10 @@ pub struct GstRTSPOnvifMediaFactoryClass { impl ::std::fmt::Debug for GstRTSPOnvifMediaFactoryClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstRTSPOnvifMediaFactoryClass @ {:?}", - self as *const _ - )) - .field("parent", &self.parent) - .field("has_backchannel_support", &self.has_backchannel_support) - .finish() + f.debug_struct(&format!("GstRTSPOnvifMediaFactoryClass @ {:p}", self)) + .field("parent", &self.parent) + .field("has_backchannel_support", &self.has_backchannel_support) + .finish() } } @@ -735,7 +726,7 @@ pub struct GstRTSPOnvifServerClass { impl ::std::fmt::Debug for GstRTSPOnvifServerClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPOnvifServerClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPOnvifServerClass @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -749,7 +740,7 @@ pub struct GstRTSPPermissions { impl ::std::fmt::Debug for GstRTSPPermissions { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPPermissions @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPPermissions @ {:p}", self)) .field("mini_object", &self.mini_object) .finish() } @@ -766,7 +757,7 @@ pub struct GstRTSPServerClass { impl ::std::fmt::Debug for GstRTSPServerClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPServerClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPServerClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("create_client", &self.create_client) .field("client_connected", &self.client_connected) @@ -788,7 +779,7 @@ pub struct GstRTSPSessionClass { impl ::std::fmt::Debug for GstRTSPSessionClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPSessionClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPSessionClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -803,12 +794,9 @@ pub struct GstRTSPSessionMediaClass { impl ::std::fmt::Debug for GstRTSPSessionMediaClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstRTSPSessionMediaClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .finish() + f.debug_struct(&format!("GstRTSPSessionMediaClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .finish() } } @@ -830,7 +818,7 @@ pub struct GstRTSPSessionPoolClass { impl ::std::fmt::Debug for GstRTSPSessionPoolClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPSessionPoolClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPSessionPoolClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("create_session_id", &self.create_session_id) .field("create_session", &self.create_session) @@ -858,7 +846,7 @@ pub struct GstRTSPStreamClass { impl ::std::fmt::Debug for GstRTSPStreamClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPStreamClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPStreamClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -878,12 +866,9 @@ pub struct GstRTSPStreamTransportClass { impl ::std::fmt::Debug for GstRTSPStreamTransportClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstRTSPStreamTransportClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .finish() + f.debug_struct(&format!("GstRTSPStreamTransportClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .finish() } } @@ -903,7 +888,7 @@ pub struct GstRTSPThread { impl ::std::fmt::Debug for GstRTSPThread { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPThread @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPThread @ {:p}", self)) .field("mini_object", &self.mini_object) .field("type_", &self.type_) .field("context", &self.context) @@ -934,7 +919,7 @@ pub struct GstRTSPThreadPoolClass { impl ::std::fmt::Debug for GstRTSPThreadPoolClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPThreadPoolClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPThreadPoolClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("pool", &self.pool) .field("get_thread", &self.get_thread) @@ -958,7 +943,7 @@ pub struct GstRTSPToken { impl ::std::fmt::Debug for GstRTSPToken { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPToken @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPToken @ {:p}", self)) .field("mini_object", &self.mini_object) .finish() } @@ -973,7 +958,7 @@ pub struct GstSDPInfo { impl ::std::fmt::Debug for GstSDPInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstSDPInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstSDPInfo @ {:p}", self)) .field("is_ipv6", &self.is_ipv6) .field("server_ip", &self.server_ip) .finish() @@ -991,7 +976,7 @@ pub struct GstRTSPAddressPool { impl ::std::fmt::Debug for GstRTSPAddressPool { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPAddressPool @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPAddressPool @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1007,7 +992,7 @@ pub struct GstRTSPAuth { impl ::std::fmt::Debug for GstRTSPAuth { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPAuth @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPAuth @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1023,7 +1008,7 @@ pub struct GstRTSPClient { impl ::std::fmt::Debug for GstRTSPClient { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPClient @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPClient @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1039,7 +1024,7 @@ pub struct GstRTSPMedia { impl ::std::fmt::Debug for GstRTSPMedia { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPMedia @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPMedia @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1055,7 +1040,7 @@ pub struct GstRTSPMediaFactory { impl ::std::fmt::Debug for GstRTSPMediaFactory { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPMediaFactory @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPMediaFactory @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1071,7 +1056,7 @@ pub struct GstRTSPMediaFactoryURI { impl ::std::fmt::Debug for GstRTSPMediaFactoryURI { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPMediaFactoryURI @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPMediaFactoryURI @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1087,7 +1072,7 @@ pub struct GstRTSPMountPoints { impl ::std::fmt::Debug for GstRTSPMountPoints { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPMountPoints @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPMountPoints @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1102,7 +1087,7 @@ pub struct GstRTSPOnvifClient { impl ::std::fmt::Debug for GstRTSPOnvifClient { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPOnvifClient @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPOnvifClient @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1118,7 +1103,7 @@ pub struct GstRTSPOnvifMedia { impl ::std::fmt::Debug for GstRTSPOnvifMedia { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPOnvifMedia @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPOnvifMedia @ {:p}", self)) .field("parent", &self.parent) .field("priv_", &self.priv_) .finish() @@ -1135,13 +1120,10 @@ pub struct GstRTSPOnvifMediaFactory { impl ::std::fmt::Debug for GstRTSPOnvifMediaFactory { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstRTSPOnvifMediaFactory @ {:?}", - self as *const _ - )) - .field("parent", &self.parent) - .field("priv_", &self.priv_) - .finish() + f.debug_struct(&format!("GstRTSPOnvifMediaFactory @ {:p}", self)) + .field("parent", &self.parent) + .field("priv_", &self.priv_) + .finish() } } @@ -1154,7 +1136,7 @@ pub struct GstRTSPOnvifServer { impl ::std::fmt::Debug for GstRTSPOnvifServer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPOnvifServer @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPOnvifServer @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1170,7 +1152,7 @@ pub struct GstRTSPServer { impl ::std::fmt::Debug for GstRTSPServer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPServer @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPServer @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1186,7 +1168,7 @@ pub struct GstRTSPSession { impl ::std::fmt::Debug for GstRTSPSession { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPSession @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPSession @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1202,7 +1184,7 @@ pub struct GstRTSPSessionMedia { impl ::std::fmt::Debug for GstRTSPSessionMedia { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPSessionMedia @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPSessionMedia @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1218,7 +1200,7 @@ pub struct GstRTSPSessionPool { impl ::std::fmt::Debug for GstRTSPSessionPool { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPSessionPool @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPSessionPool @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1234,7 +1216,7 @@ pub struct GstRTSPStream { impl ::std::fmt::Debug for GstRTSPStream { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPStream @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPStream @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1250,7 +1232,7 @@ pub struct GstRTSPStreamTransport { impl ::std::fmt::Debug for GstRTSPStreamTransport { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPStreamTransport @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPStreamTransport @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -1266,7 +1248,7 @@ pub struct GstRTSPThreadPool { impl ::std::fmt::Debug for GstRTSPThreadPool { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPThreadPool @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPThreadPool @ {:p}", self)) .field("parent", &self.parent) .finish() } diff --git a/gstreamer-rtsp-server/sys/tests/abi.rs b/gstreamer-rtsp-server/sys/tests/abi.rs index cfe00475e..605043280 100644 --- a/gstreamer-rtsp-server/sys/tests/abi.rs +++ b/gstreamer-rtsp-server/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/sys/tests/constant.c b/gstreamer-rtsp-server/sys/tests/constant.c index 92cc3e99f..b054757da 100644 --- a/gstreamer-rtsp-server/sys/tests/constant.c +++ b/gstreamer-rtsp-server/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/sys/tests/layout.c b/gstreamer-rtsp-server/sys/tests/layout.c index 39362d357..415ca7697 100644 --- a/gstreamer-rtsp-server/sys/tests/layout.c +++ b/gstreamer-rtsp-server/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp/src/auto/enums.rs b/gstreamer-rtsp/src/auto/enums.rs index 83961c578..f30429d20 100644 --- a/gstreamer-rtsp/src/auto/enums.rs +++ b/gstreamer-rtsp/src/auto/enums.rs @@ -42,9 +42,9 @@ impl FromGlib for RTSPAuthMethod { unsafe fn from_glib(value: ffi::GstRTSPAuthMethod) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Basic, - 2 => Self::Digest, + ffi::GST_RTSP_AUTH_NONE => Self::None, + ffi::GST_RTSP_AUTH_BASIC => Self::Basic, + ffi::GST_RTSP_AUTH_DIGEST => Self::Digest, value => Self::__Unknown(value), } } @@ -116,9 +116,9 @@ impl FromGlib for RTSPFamily { unsafe fn from_glib(value: ffi::GstRTSPFamily) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Inet, - 2 => Self::Inet6, + ffi::GST_RTSP_FAM_NONE => Self::None, + ffi::GST_RTSP_FAM_INET => Self::Inet, + ffi::GST_RTSP_FAM_INET6 => Self::Inet6, value => Self::__Unknown(value), } } @@ -451,96 +451,96 @@ impl FromGlib for RTSPHeaderField { unsafe fn from_glib(value: ffi::GstRTSPHeaderField) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Invalid, - 1 => Self::Accept, - 2 => Self::AcceptEncoding, - 3 => Self::AcceptLanguage, - 4 => Self::Allow, - 5 => Self::Authorization, - 6 => Self::Bandwidth, - 7 => Self::Blocksize, - 8 => Self::CacheControl, - 9 => Self::Conference, - 10 => Self::Connection, - 11 => Self::ContentBase, - 12 => Self::ContentEncoding, - 13 => Self::ContentLanguage, - 14 => Self::ContentLength, - 15 => Self::ContentLocation, - 16 => Self::ContentType, - 17 => Self::Cseq, - 18 => Self::Date, - 19 => Self::Expires, - 20 => Self::From, - 21 => Self::IfModifiedSince, - 22 => Self::LastModified, - 23 => Self::ProxyAuthenticate, - 24 => Self::ProxyRequire, - 25 => Self::Public, - 26 => Self::Range, - 27 => Self::Referer, - 28 => Self::Require, - 29 => Self::RetryAfter, - 30 => Self::RtpInfo, - 31 => Self::Scale, - 32 => Self::Session, - 33 => Self::Server, - 34 => Self::Speed, - 35 => Self::Transport, - 36 => Self::Unsupported, - 37 => Self::UserAgent, - 38 => Self::Via, - 39 => Self::WwwAuthenticate, - 40 => Self::ClientChallenge, - 41 => Self::RealChallenge1, - 42 => Self::RealChallenge2, - 43 => Self::RealChallenge3, - 44 => Self::Subscribe, - 45 => Self::Alert, - 46 => Self::ClientId, - 47 => Self::CompanyId, - 48 => Self::Guid, - 49 => Self::RegionData, - 50 => Self::MaxAsmWidth, - 51 => Self::Language, - 52 => Self::PlayerStartTime, - 53 => Self::Location, - 54 => Self::Etag, - 55 => Self::IfMatch, - 56 => Self::AcceptCharset, - 57 => Self::Supported, - 58 => Self::Vary, - 59 => Self::XAccelerateStreaming, - 60 => Self::XAcceptAuthent, - 61 => Self::XAcceptProxyAuthent, - 62 => Self::XBroadcastId, - 63 => Self::XBurstStreaming, - 64 => Self::XNotice, - 65 => Self::XPlayerLagTime, - 66 => Self::XPlaylist, - 67 => Self::XPlaylistChangeNotice, - 68 => Self::XPlaylistGenId, - 69 => Self::XPlaylistSeekId, - 70 => Self::XProxyClientAgent, - 71 => Self::XProxyClientVerb, - 72 => Self::XRecedingPlaylistchange, - 73 => Self::XRtpInfo, - 74 => Self::XStartupprofile, - 75 => Self::Timestamp, - 76 => Self::AuthenticationInfo, - 77 => Self::Host, - 78 => Self::Pragma, - 79 => Self::XServerIpAddress, - 80 => Self::XSessioncookie, - 81 => Self::RtcpInterval, - 82 => Self::Keymgmt, - 83 => Self::PipelinedRequests, - 84 => Self::MediaProperties, - 85 => Self::SeekStyle, - 86 => Self::AcceptRanges, - 87 => Self::Frames, - 88 => Self::RateControl, - 89 => Self::Last, + ffi::GST_RTSP_HDR_INVALID => Self::Invalid, + ffi::GST_RTSP_HDR_ACCEPT => Self::Accept, + ffi::GST_RTSP_HDR_ACCEPT_ENCODING => Self::AcceptEncoding, + ffi::GST_RTSP_HDR_ACCEPT_LANGUAGE => Self::AcceptLanguage, + ffi::GST_RTSP_HDR_ALLOW => Self::Allow, + ffi::GST_RTSP_HDR_AUTHORIZATION => Self::Authorization, + ffi::GST_RTSP_HDR_BANDWIDTH => Self::Bandwidth, + ffi::GST_RTSP_HDR_BLOCKSIZE => Self::Blocksize, + ffi::GST_RTSP_HDR_CACHE_CONTROL => Self::CacheControl, + ffi::GST_RTSP_HDR_CONFERENCE => Self::Conference, + ffi::GST_RTSP_HDR_CONNECTION => Self::Connection, + ffi::GST_RTSP_HDR_CONTENT_BASE => Self::ContentBase, + ffi::GST_RTSP_HDR_CONTENT_ENCODING => Self::ContentEncoding, + ffi::GST_RTSP_HDR_CONTENT_LANGUAGE => Self::ContentLanguage, + ffi::GST_RTSP_HDR_CONTENT_LENGTH => Self::ContentLength, + ffi::GST_RTSP_HDR_CONTENT_LOCATION => Self::ContentLocation, + ffi::GST_RTSP_HDR_CONTENT_TYPE => Self::ContentType, + ffi::GST_RTSP_HDR_CSEQ => Self::Cseq, + ffi::GST_RTSP_HDR_DATE => Self::Date, + ffi::GST_RTSP_HDR_EXPIRES => Self::Expires, + ffi::GST_RTSP_HDR_FROM => Self::From, + ffi::GST_RTSP_HDR_IF_MODIFIED_SINCE => Self::IfModifiedSince, + ffi::GST_RTSP_HDR_LAST_MODIFIED => Self::LastModified, + ffi::GST_RTSP_HDR_PROXY_AUTHENTICATE => Self::ProxyAuthenticate, + ffi::GST_RTSP_HDR_PROXY_REQUIRE => Self::ProxyRequire, + ffi::GST_RTSP_HDR_PUBLIC => Self::Public, + ffi::GST_RTSP_HDR_RANGE => Self::Range, + ffi::GST_RTSP_HDR_REFERER => Self::Referer, + ffi::GST_RTSP_HDR_REQUIRE => Self::Require, + ffi::GST_RTSP_HDR_RETRY_AFTER => Self::RetryAfter, + ffi::GST_RTSP_HDR_RTP_INFO => Self::RtpInfo, + ffi::GST_RTSP_HDR_SCALE => Self::Scale, + ffi::GST_RTSP_HDR_SESSION => Self::Session, + ffi::GST_RTSP_HDR_SERVER => Self::Server, + ffi::GST_RTSP_HDR_SPEED => Self::Speed, + ffi::GST_RTSP_HDR_TRANSPORT => Self::Transport, + ffi::GST_RTSP_HDR_UNSUPPORTED => Self::Unsupported, + ffi::GST_RTSP_HDR_USER_AGENT => Self::UserAgent, + ffi::GST_RTSP_HDR_VIA => Self::Via, + ffi::GST_RTSP_HDR_WWW_AUTHENTICATE => Self::WwwAuthenticate, + ffi::GST_RTSP_HDR_CLIENT_CHALLENGE => Self::ClientChallenge, + ffi::GST_RTSP_HDR_REAL_CHALLENGE1 => Self::RealChallenge1, + ffi::GST_RTSP_HDR_REAL_CHALLENGE2 => Self::RealChallenge2, + ffi::GST_RTSP_HDR_REAL_CHALLENGE3 => Self::RealChallenge3, + ffi::GST_RTSP_HDR_SUBSCRIBE => Self::Subscribe, + ffi::GST_RTSP_HDR_ALERT => Self::Alert, + ffi::GST_RTSP_HDR_CLIENT_ID => Self::ClientId, + ffi::GST_RTSP_HDR_COMPANY_ID => Self::CompanyId, + ffi::GST_RTSP_HDR_GUID => Self::Guid, + ffi::GST_RTSP_HDR_REGION_DATA => Self::RegionData, + ffi::GST_RTSP_HDR_MAX_ASM_WIDTH => Self::MaxAsmWidth, + ffi::GST_RTSP_HDR_LANGUAGE => Self::Language, + ffi::GST_RTSP_HDR_PLAYER_START_TIME => Self::PlayerStartTime, + ffi::GST_RTSP_HDR_LOCATION => Self::Location, + ffi::GST_RTSP_HDR_ETAG => Self::Etag, + ffi::GST_RTSP_HDR_IF_MATCH => Self::IfMatch, + ffi::GST_RTSP_HDR_ACCEPT_CHARSET => Self::AcceptCharset, + ffi::GST_RTSP_HDR_SUPPORTED => Self::Supported, + ffi::GST_RTSP_HDR_VARY => Self::Vary, + ffi::GST_RTSP_HDR_X_ACCELERATE_STREAMING => Self::XAccelerateStreaming, + ffi::GST_RTSP_HDR_X_ACCEPT_AUTHENT => Self::XAcceptAuthent, + ffi::GST_RTSP_HDR_X_ACCEPT_PROXY_AUTHENT => Self::XAcceptProxyAuthent, + ffi::GST_RTSP_HDR_X_BROADCAST_ID => Self::XBroadcastId, + ffi::GST_RTSP_HDR_X_BURST_STREAMING => Self::XBurstStreaming, + ffi::GST_RTSP_HDR_X_NOTICE => Self::XNotice, + ffi::GST_RTSP_HDR_X_PLAYER_LAG_TIME => Self::XPlayerLagTime, + ffi::GST_RTSP_HDR_X_PLAYLIST => Self::XPlaylist, + ffi::GST_RTSP_HDR_X_PLAYLIST_CHANGE_NOTICE => Self::XPlaylistChangeNotice, + ffi::GST_RTSP_HDR_X_PLAYLIST_GEN_ID => Self::XPlaylistGenId, + ffi::GST_RTSP_HDR_X_PLAYLIST_SEEK_ID => Self::XPlaylistSeekId, + ffi::GST_RTSP_HDR_X_PROXY_CLIENT_AGENT => Self::XProxyClientAgent, + ffi::GST_RTSP_HDR_X_PROXY_CLIENT_VERB => Self::XProxyClientVerb, + ffi::GST_RTSP_HDR_X_RECEDING_PLAYLISTCHANGE => Self::XRecedingPlaylistchange, + ffi::GST_RTSP_HDR_X_RTP_INFO => Self::XRtpInfo, + ffi::GST_RTSP_HDR_X_STARTUPPROFILE => Self::XStartupprofile, + ffi::GST_RTSP_HDR_TIMESTAMP => Self::Timestamp, + ffi::GST_RTSP_HDR_AUTHENTICATION_INFO => Self::AuthenticationInfo, + ffi::GST_RTSP_HDR_HOST => Self::Host, + ffi::GST_RTSP_HDR_PRAGMA => Self::Pragma, + ffi::GST_RTSP_HDR_X_SERVER_IP_ADDRESS => Self::XServerIpAddress, + ffi::GST_RTSP_HDR_X_SESSIONCOOKIE => Self::XSessioncookie, + ffi::GST_RTSP_HDR_RTCP_INTERVAL => Self::RtcpInterval, + ffi::GST_RTSP_HDR_KEYMGMT => Self::Keymgmt, + ffi::GST_RTSP_HDR_PIPELINED_REQUESTS => Self::PipelinedRequests, + ffi::GST_RTSP_HDR_MEDIA_PROPERTIES => Self::MediaProperties, + ffi::GST_RTSP_HDR_SEEK_STYLE => Self::SeekStyle, + ffi::GST_RTSP_HDR_ACCEPT_RANGES => Self::AcceptRanges, + ffi::GST_RTSP_HDR_FRAMES => Self::Frames, + ffi::GST_RTSP_HDR_RATE_CONTROL => Self::RateControl, + ffi::GST_RTSP_HDR_LAST => Self::Last, value => Self::__Unknown(value), } } @@ -621,12 +621,12 @@ impl FromGlib for RTSPMsgType { unsafe fn from_glib(value: ffi::GstRTSPMsgType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Invalid, - 1 => Self::Request, - 2 => Self::Response, - 3 => Self::HttpRequest, - 4 => Self::HttpResponse, - 5 => Self::Data, + ffi::GST_RTSP_MESSAGE_INVALID => Self::Invalid, + ffi::GST_RTSP_MESSAGE_REQUEST => Self::Request, + ffi::GST_RTSP_MESSAGE_RESPONSE => Self::Response, + ffi::GST_RTSP_MESSAGE_HTTP_REQUEST => Self::HttpRequest, + ffi::GST_RTSP_MESSAGE_HTTP_RESPONSE => Self::HttpResponse, + ffi::GST_RTSP_MESSAGE_DATA => Self::Data, value => Self::__Unknown(value), } } @@ -704,11 +704,11 @@ impl FromGlib for RTSPRangeUnit { unsafe fn from_glib(value: ffi::GstRTSPRangeUnit) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Smpte, - 1 => Self::Smpte30Drop, - 2 => Self::Smpte25, - 3 => Self::Npt, - 4 => Self::Clock, + ffi::GST_RTSP_RANGE_SMPTE => Self::Smpte, + ffi::GST_RTSP_RANGE_SMPTE_30_DROP => Self::Smpte30Drop, + ffi::GST_RTSP_RANGE_SMPTE_25 => Self::Smpte25, + ffi::GST_RTSP_RANGE_NPT => Self::Npt, + ffi::GST_RTSP_RANGE_CLOCK => Self::Clock, value => Self::__Unknown(value), } } @@ -825,24 +825,24 @@ impl FromGlib for RTSPResult { unsafe fn from_glib(value: ffi::GstRTSPResult) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Ok, - -1 => Self::Error, - -2 => Self::Einval, - -3 => Self::Eintr, - -4 => Self::Enomem, - -5 => Self::Eresolv, - -6 => Self::Enotimpl, - -7 => Self::Esys, - -8 => Self::Eparse, - -9 => Self::Ewsastart, - -10 => Self::Ewsaversion, - -11 => Self::Eeof, - -12 => Self::Enet, - -13 => Self::Enotip, - -14 => Self::Etimeout, - -15 => Self::Etget, - -16 => Self::Etpost, - -17 => Self::Elast, + ffi::GST_RTSP_OK => Self::Ok, + ffi::GST_RTSP_ERROR => Self::Error, + ffi::GST_RTSP_EINVAL => Self::Einval, + ffi::GST_RTSP_EINTR => Self::Eintr, + ffi::GST_RTSP_ENOMEM => Self::Enomem, + ffi::GST_RTSP_ERESOLV => Self::Eresolv, + ffi::GST_RTSP_ENOTIMPL => Self::Enotimpl, + ffi::GST_RTSP_ESYS => Self::Esys, + ffi::GST_RTSP_EPARSE => Self::Eparse, + ffi::GST_RTSP_EWSASTART => Self::Ewsastart, + ffi::GST_RTSP_EWSAVERSION => Self::Ewsaversion, + ffi::GST_RTSP_EEOF => Self::Eeof, + ffi::GST_RTSP_ENET => Self::Enet, + ffi::GST_RTSP_ENOTIP => Self::Enotip, + ffi::GST_RTSP_ETIMEOUT => Self::Etimeout, + ffi::GST_RTSP_ETGET => Self::Etget, + ffi::GST_RTSP_ETPOST => Self::Etpost, + ffi::GST_RTSP_ELAST => Self::Elast, value => Self::__Unknown(value), } } @@ -923,12 +923,12 @@ impl FromGlib for RTSPState { unsafe fn from_glib(value: ffi::GstRTSPState) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Invalid, - 1 => Self::Init, - 2 => Self::Ready, - 3 => Self::Seeking, - 4 => Self::Playing, - 5 => Self::Recording, + ffi::GST_RTSP_STATE_INVALID => Self::Invalid, + ffi::GST_RTSP_STATE_INIT => Self::Init, + ffi::GST_RTSP_STATE_READY => Self::Ready, + ffi::GST_RTSP_STATE_SEEKING => Self::Seeking, + ffi::GST_RTSP_STATE_PLAYING => Self::Playing, + ffi::GST_RTSP_STATE_RECORDING => Self::Recording, value => Self::__Unknown(value), } } @@ -1133,52 +1133,56 @@ impl FromGlib for RTSPStatusCode { unsafe fn from_glib(value: ffi::GstRTSPStatusCode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Invalid, - 100 => Self::Continue, - 200 => Self::Ok, - 201 => Self::Created, - 250 => Self::LowOnStorage, - 300 => Self::MultipleChoices, - 301 => Self::MovedPermanently, - 302 => Self::MoveTemporarily, - 303 => Self::SeeOther, - 304 => Self::NotModified, - 305 => Self::UseProxy, - 400 => Self::BadRequest, - 401 => Self::Unauthorized, - 402 => Self::PaymentRequired, - 403 => Self::Forbidden, - 404 => Self::NotFound, - 405 => Self::MethodNotAllowed, - 406 => Self::NotAcceptable, - 407 => Self::ProxyAuthRequired, - 408 => Self::RequestTimeout, - 410 => Self::Gone, - 411 => Self::LengthRequired, - 412 => Self::PreconditionFailed, - 413 => Self::RequestEntityTooLarge, - 414 => Self::RequestUriTooLarge, - 415 => Self::UnsupportedMediaType, - 451 => Self::ParameterNotUnderstood, - 452 => Self::ConferenceNotFound, - 453 => Self::NotEnoughBandwidth, - 454 => Self::SessionNotFound, - 455 => Self::MethodNotValidInThisState, - 456 => Self::HeaderFieldNotValidForResource, - 457 => Self::InvalidRange, - 458 => Self::ParameterIsReadonly, - 459 => Self::AggregateOperationNotAllowed, - 460 => Self::OnlyAggregateOperationAllowed, - 461 => Self::UnsupportedTransport, - 462 => Self::DestinationUnreachable, - 463 => Self::KeyManagementFailure, - 500 => Self::InternalServerError, - 501 => Self::NotImplemented, - 502 => Self::BadGateway, - 503 => Self::ServiceUnavailable, - 504 => Self::GatewayTimeout, - 505 => Self::RtspVersionNotSupported, - 551 => Self::OptionNotSupported, + ffi::GST_RTSP_STS_INVALID => Self::Invalid, + ffi::GST_RTSP_STS_CONTINUE => Self::Continue, + ffi::GST_RTSP_STS_OK => Self::Ok, + ffi::GST_RTSP_STS_CREATED => Self::Created, + ffi::GST_RTSP_STS_LOW_ON_STORAGE => Self::LowOnStorage, + ffi::GST_RTSP_STS_MULTIPLE_CHOICES => Self::MultipleChoices, + ffi::GST_RTSP_STS_MOVED_PERMANENTLY => Self::MovedPermanently, + ffi::GST_RTSP_STS_MOVE_TEMPORARILY => Self::MoveTemporarily, + ffi::GST_RTSP_STS_SEE_OTHER => Self::SeeOther, + ffi::GST_RTSP_STS_NOT_MODIFIED => Self::NotModified, + ffi::GST_RTSP_STS_USE_PROXY => Self::UseProxy, + ffi::GST_RTSP_STS_BAD_REQUEST => Self::BadRequest, + ffi::GST_RTSP_STS_UNAUTHORIZED => Self::Unauthorized, + ffi::GST_RTSP_STS_PAYMENT_REQUIRED => Self::PaymentRequired, + ffi::GST_RTSP_STS_FORBIDDEN => Self::Forbidden, + ffi::GST_RTSP_STS_NOT_FOUND => Self::NotFound, + ffi::GST_RTSP_STS_METHOD_NOT_ALLOWED => Self::MethodNotAllowed, + ffi::GST_RTSP_STS_NOT_ACCEPTABLE => Self::NotAcceptable, + ffi::GST_RTSP_STS_PROXY_AUTH_REQUIRED => Self::ProxyAuthRequired, + ffi::GST_RTSP_STS_REQUEST_TIMEOUT => Self::RequestTimeout, + ffi::GST_RTSP_STS_GONE => Self::Gone, + ffi::GST_RTSP_STS_LENGTH_REQUIRED => Self::LengthRequired, + ffi::GST_RTSP_STS_PRECONDITION_FAILED => Self::PreconditionFailed, + ffi::GST_RTSP_STS_REQUEST_ENTITY_TOO_LARGE => Self::RequestEntityTooLarge, + ffi::GST_RTSP_STS_REQUEST_URI_TOO_LARGE => Self::RequestUriTooLarge, + ffi::GST_RTSP_STS_UNSUPPORTED_MEDIA_TYPE => Self::UnsupportedMediaType, + ffi::GST_RTSP_STS_PARAMETER_NOT_UNDERSTOOD => Self::ParameterNotUnderstood, + ffi::GST_RTSP_STS_CONFERENCE_NOT_FOUND => Self::ConferenceNotFound, + ffi::GST_RTSP_STS_NOT_ENOUGH_BANDWIDTH => Self::NotEnoughBandwidth, + ffi::GST_RTSP_STS_SESSION_NOT_FOUND => Self::SessionNotFound, + ffi::GST_RTSP_STS_METHOD_NOT_VALID_IN_THIS_STATE => Self::MethodNotValidInThisState, + ffi::GST_RTSP_STS_HEADER_FIELD_NOT_VALID_FOR_RESOURCE => { + Self::HeaderFieldNotValidForResource + } + ffi::GST_RTSP_STS_INVALID_RANGE => Self::InvalidRange, + ffi::GST_RTSP_STS_PARAMETER_IS_READONLY => Self::ParameterIsReadonly, + ffi::GST_RTSP_STS_AGGREGATE_OPERATION_NOT_ALLOWED => Self::AggregateOperationNotAllowed, + ffi::GST_RTSP_STS_ONLY_AGGREGATE_OPERATION_ALLOWED => { + Self::OnlyAggregateOperationAllowed + } + ffi::GST_RTSP_STS_UNSUPPORTED_TRANSPORT => Self::UnsupportedTransport, + ffi::GST_RTSP_STS_DESTINATION_UNREACHABLE => Self::DestinationUnreachable, + ffi::GST_RTSP_STS_KEY_MANAGEMENT_FAILURE => Self::KeyManagementFailure, + ffi::GST_RTSP_STS_INTERNAL_SERVER_ERROR => Self::InternalServerError, + ffi::GST_RTSP_STS_NOT_IMPLEMENTED => Self::NotImplemented, + ffi::GST_RTSP_STS_BAD_GATEWAY => Self::BadGateway, + ffi::GST_RTSP_STS_SERVICE_UNAVAILABLE => Self::ServiceUnavailable, + ffi::GST_RTSP_STS_GATEWAY_TIMEOUT => Self::GatewayTimeout, + ffi::GST_RTSP_STS_RTSP_VERSION_NOT_SUPPORTED => Self::RtspVersionNotSupported, + ffi::GST_RTSP_STS_OPTION_NOT_SUPPORTED => Self::OptionNotSupported, value => Self::__Unknown(value), } } @@ -1256,11 +1260,11 @@ impl FromGlib for RTSPTimeType { unsafe fn from_glib(value: ffi::GstRTSPTimeType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Seconds, - 1 => Self::Now, - 2 => Self::End, - 3 => Self::Frames, - 4 => Self::Utc, + ffi::GST_RTSP_TIME_SECONDS => Self::Seconds, + ffi::GST_RTSP_TIME_NOW => Self::Now, + ffi::GST_RTSP_TIME_END => Self::End, + ffi::GST_RTSP_TIME_FRAMES => Self::Frames, + ffi::GST_RTSP_TIME_UTC => Self::Utc, value => Self::__Unknown(value), } } diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-rtsp/src/auto/versions.txt +++ b/gstreamer-rtsp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-rtsp/sys/build.rs b/gstreamer-rtsp/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-rtsp/sys/build.rs +++ b/gstreamer-rtsp/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp/sys/src/lib.rs b/gstreamer-rtsp/sys/src/lib.rs index 9ab6f0ce5..4fc27983d 100644 --- a/gstreamer-rtsp/sys/src/lib.rs +++ b/gstreamer-rtsp/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -289,14 +289,11 @@ pub union GstRTSPMessage_type_data { impl ::std::fmt::Debug for GstRTSPMessage_type_data { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstRTSPMessage_type_data @ {:?}", - self as *const _ - )) - .field("request", unsafe { &self.request }) - .field("response", unsafe { &self.response }) - .field("data", unsafe { &self.data }) - .finish() + f.debug_struct(&format!("GstRTSPMessage_type_data @ {:p}", self)) + .field("request", unsafe { &self.request }) + .field("response", unsafe { &self.response }) + .field("data", unsafe { &self.data }) + .finish() } } @@ -321,7 +318,7 @@ pub struct GstRTSPAuthCredential { impl ::std::fmt::Debug for GstRTSPAuthCredential { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPAuthCredential @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPAuthCredential @ {:p}", self)) .field("scheme", &self.scheme) .field("params", &self.params) .field("authorization", &self.authorization) @@ -338,7 +335,7 @@ pub struct GstRTSPAuthParam { impl ::std::fmt::Debug for GstRTSPAuthParam { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPAuthParam @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPAuthParam @ {:p}", self)) .field("name", &self.name) .field("value", &self.value) .finish() @@ -400,22 +397,19 @@ pub struct GstRTSPExtensionInterface { impl ::std::fmt::Debug for GstRTSPExtensionInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstRTSPExtensionInterface @ {:?}", - self as *const _ - )) - .field("parent", &self.parent) - .field("detect_server", &self.detect_server) - .field("before_send", &self.before_send) - .field("after_send", &self.after_send) - .field("parse_sdp", &self.parse_sdp) - .field("setup_media", &self.setup_media) - .field("configure_stream", &self.configure_stream) - .field("get_transports", &self.get_transports) - .field("stream_select", &self.stream_select) - .field("send", &self.send) - .field("receive_request", &self.receive_request) - .finish() + f.debug_struct(&format!("GstRTSPExtensionInterface @ {:p}", self)) + .field("parent", &self.parent) + .field("detect_server", &self.detect_server) + .field("before_send", &self.before_send) + .field("after_send", &self.after_send) + .field("parse_sdp", &self.parse_sdp) + .field("setup_media", &self.setup_media) + .field("configure_stream", &self.configure_stream) + .field("get_transports", &self.get_transports) + .field("stream_select", &self.stream_select) + .field("send", &self.send) + .field("receive_request", &self.receive_request) + .finish() } } @@ -433,7 +427,7 @@ pub struct GstRTSPMessage { impl ::std::fmt::Debug for GstRTSPMessage { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPMessage @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPMessage @ {:p}", self)) .field("type_", &self.type_) .field("type_data", &self.type_data) .finish() @@ -448,12 +442,9 @@ pub struct GstRTSPMessage_type_data_data { impl ::std::fmt::Debug for GstRTSPMessage_type_data_data { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstRTSPMessage_type_data_data @ {:?}", - self as *const _ - )) - .field("channel", &self.channel) - .finish() + f.debug_struct(&format!("GstRTSPMessage_type_data_data @ {:p}", self)) + .field("channel", &self.channel) + .finish() } } @@ -467,14 +458,11 @@ pub struct GstRTSPMessage_type_data_request { impl ::std::fmt::Debug for GstRTSPMessage_type_data_request { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstRTSPMessage_type_data_request @ {:?}", - self as *const _ - )) - .field("method", &self.method) - .field("uri", &self.uri) - .field("version", &self.version) - .finish() + f.debug_struct(&format!("GstRTSPMessage_type_data_request @ {:p}", self)) + .field("method", &self.method) + .field("uri", &self.uri) + .field("version", &self.version) + .finish() } } @@ -488,14 +476,11 @@ pub struct GstRTSPMessage_type_data_response { impl ::std::fmt::Debug for GstRTSPMessage_type_data_response { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstRTSPMessage_type_data_response @ {:?}", - self as *const _ - )) - .field("code", &self.code) - .field("reason", &self.reason) - .field("version", &self.version) - .finish() + f.debug_struct(&format!("GstRTSPMessage_type_data_response @ {:p}", self)) + .field("code", &self.code) + .field("reason", &self.reason) + .field("version", &self.version) + .finish() } } @@ -508,7 +493,7 @@ pub struct GstRTSPRange { impl ::std::fmt::Debug for GstRTSPRange { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPRange @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPRange @ {:p}", self)) .field("min", &self.min) .field("max", &self.max) .finish() @@ -524,7 +509,7 @@ pub struct GstRTSPTime { impl ::std::fmt::Debug for GstRTSPTime { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPTime @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPTime @ {:p}", self)) .field("type_", &self.type_) .field("seconds", &self.seconds) .finish() @@ -542,7 +527,7 @@ pub struct GstRTSPTime2 { impl ::std::fmt::Debug for GstRTSPTime2 { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPTime2 @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPTime2 @ {:p}", self)) .field("frames", &self.frames) .field("year", &self.year) .field("month", &self.month) @@ -563,7 +548,7 @@ pub struct GstRTSPTimeRange { impl ::std::fmt::Debug for GstRTSPTimeRange { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPTimeRange @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPTimeRange @ {:p}", self)) .field("unit", &self.unit) .field("min", &self.min) .field("max", &self.max) @@ -596,7 +581,7 @@ pub struct GstRTSPTransport { impl ::std::fmt::Debug for GstRTSPTransport { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPTransport @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPTransport @ {:p}", self)) .field("trans", &self.trans) .field("profile", &self.profile) .field("lower_transport", &self.lower_transport) @@ -631,7 +616,7 @@ pub struct GstRTSPUrl { impl ::std::fmt::Debug for GstRTSPUrl { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPUrl @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPUrl @ {:p}", self)) .field("transports", &self.transports) .field("family", &self.family) .field("user", &self.user) @@ -686,7 +671,7 @@ pub struct GstRTSPWatchFuncs { impl ::std::fmt::Debug for GstRTSPWatchFuncs { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRTSPWatchFuncs @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRTSPWatchFuncs @ {:p}", self)) .field("message_received", &self.message_received) .field("message_sent", &self.message_sent) .field("closed", &self.closed) @@ -706,7 +691,7 @@ pub struct GstRTSPExtension(c_void); impl ::std::fmt::Debug for GstRTSPExtension { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GstRTSPExtension @ {:?}", self as *const _) + write!(f, "GstRTSPExtension @ {:p}", self) } } diff --git a/gstreamer-rtsp/sys/tests/abi.rs b/gstreamer-rtsp/sys/tests/abi.rs index 19cdaae86..9ad38a462 100644 --- a/gstreamer-rtsp/sys/tests/abi.rs +++ b/gstreamer-rtsp/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp/sys/tests/constant.c b/gstreamer-rtsp/sys/tests/constant.c index c938a9e57..a64fae828 100644 --- a/gstreamer-rtsp/sys/tests/constant.c +++ b/gstreamer-rtsp/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp/sys/tests/layout.c b/gstreamer-rtsp/sys/tests/layout.c index 92e677798..81570d0b1 100644 --- a/gstreamer-rtsp/sys/tests/layout.c +++ b/gstreamer-rtsp/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-sdp/src/auto/versions.txt +++ b/gstreamer-sdp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-sdp/sys/build.rs b/gstreamer-sdp/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-sdp/sys/build.rs +++ b/gstreamer-sdp/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-sdp/sys/src/lib.rs b/gstreamer-sdp/sys/src/lib.rs index c9a8009db..85716437d 100644 --- a/gstreamer-sdp/sys/src/lib.rs +++ b/gstreamer-sdp/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -140,7 +140,7 @@ pub struct GstMIKEYMapSRTP { impl ::std::fmt::Debug for GstMIKEYMapSRTP { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMIKEYMapSRTP @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMIKEYMapSRTP @ {:p}", self)) .field("policy", &self.policy) .field("ssrc", &self.ssrc) .field("roc", &self.roc) @@ -164,7 +164,7 @@ pub struct GstMIKEYMessage { impl ::std::fmt::Debug for GstMIKEYMessage { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMIKEYMessage @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMIKEYMessage @ {:p}", self)) .field("version", &self.version) .field("type_", &self.type_) .field("V", &self.V) @@ -187,7 +187,7 @@ pub struct GstMIKEYPayload { impl ::std::fmt::Debug for GstMIKEYPayload { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMIKEYPayload @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMIKEYPayload @ {:p}", self)) .field("type_", &self.type_) .field("len", &self.len) .finish() @@ -205,7 +205,7 @@ pub struct GstMIKEYPayloadKEMAC { impl ::std::fmt::Debug for GstMIKEYPayloadKEMAC { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMIKEYPayloadKEMAC @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMIKEYPayloadKEMAC @ {:p}", self)) .field("pt", &self.pt) .field("enc_alg", &self.enc_alg) .field("mac_alg", &self.mac_alg) @@ -230,7 +230,7 @@ pub struct GstMIKEYPayloadKeyData { impl ::std::fmt::Debug for GstMIKEYPayloadKeyData { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMIKEYPayloadKeyData @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMIKEYPayloadKeyData @ {:p}", self)) .field("pt", &self.pt) .field("key_type", &self.key_type) .field("key_len", &self.key_len) @@ -255,7 +255,7 @@ pub struct GstMIKEYPayloadPKE { impl ::std::fmt::Debug for GstMIKEYPayloadPKE { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMIKEYPayloadPKE @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMIKEYPayloadPKE @ {:p}", self)) .field("pt", &self.pt) .field("C", &self.C) .field("data_len", &self.data_len) @@ -274,7 +274,7 @@ pub struct GstMIKEYPayloadRAND { impl ::std::fmt::Debug for GstMIKEYPayloadRAND { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMIKEYPayloadRAND @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMIKEYPayloadRAND @ {:p}", self)) .field("pt", &self.pt) .field("len", &self.len) .field("rand", &self.rand) @@ -293,7 +293,7 @@ pub struct GstMIKEYPayloadSP { impl ::std::fmt::Debug for GstMIKEYPayloadSP { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMIKEYPayloadSP @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMIKEYPayloadSP @ {:p}", self)) .field("pt", &self.pt) .field("policy", &self.policy) .field("proto", &self.proto) @@ -312,7 +312,7 @@ pub struct GstMIKEYPayloadSPParam { impl ::std::fmt::Debug for GstMIKEYPayloadSPParam { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMIKEYPayloadSPParam @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMIKEYPayloadSPParam @ {:p}", self)) .field("type_", &self.type_) .field("len", &self.len) .field("val", &self.val) @@ -330,7 +330,7 @@ pub struct GstMIKEYPayloadT { impl ::std::fmt::Debug for GstMIKEYPayloadT { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMIKEYPayloadT @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMIKEYPayloadT @ {:p}", self)) .field("pt", &self.pt) .field("type_", &self.type_) .field("ts_value", &self.ts_value) @@ -347,7 +347,7 @@ pub struct GstSDPAttribute { impl ::std::fmt::Debug for GstSDPAttribute { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstSDPAttribute @ {:?}", self as *const _)) + f.debug_struct(&format!("GstSDPAttribute @ {:p}", self)) .field("key", &self.key) .field("value", &self.value) .finish() @@ -363,7 +363,7 @@ pub struct GstSDPBandwidth { impl ::std::fmt::Debug for GstSDPBandwidth { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstSDPBandwidth @ {:?}", self as *const _)) + f.debug_struct(&format!("GstSDPBandwidth @ {:p}", self)) .field("bwtype", &self.bwtype) .field("bandwidth", &self.bandwidth) .finish() @@ -382,7 +382,7 @@ pub struct GstSDPConnection { impl ::std::fmt::Debug for GstSDPConnection { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstSDPConnection @ {:?}", self as *const _)) + f.debug_struct(&format!("GstSDPConnection @ {:p}", self)) .field("nettype", &self.nettype) .field("addrtype", &self.addrtype) .field("address", &self.address) @@ -401,7 +401,7 @@ pub struct GstSDPKey { impl ::std::fmt::Debug for GstSDPKey { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstSDPKey @ {:?}", self as *const _)) + f.debug_struct(&format!("GstSDPKey @ {:p}", self)) .field("type_", &self.type_) .field("data", &self.data) .finish() @@ -425,7 +425,7 @@ pub struct GstSDPMedia { impl ::std::fmt::Debug for GstSDPMedia { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstSDPMedia @ {:?}", self as *const _)) + f.debug_struct(&format!("GstSDPMedia @ {:p}", self)) .field("media", &self.media) .field("port", &self.port) .field("num_ports", &self.num_ports) @@ -461,7 +461,7 @@ pub struct GstSDPMessage { impl ::std::fmt::Debug for GstSDPMessage { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstSDPMessage @ {:?}", self as *const _)) + f.debug_struct(&format!("GstSDPMessage @ {:p}", self)) .field("version", &self.version) .field("origin", &self.origin) .field("session_name", &self.session_name) @@ -493,7 +493,7 @@ pub struct GstSDPOrigin { impl ::std::fmt::Debug for GstSDPOrigin { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstSDPOrigin @ {:?}", self as *const _)) + f.debug_struct(&format!("GstSDPOrigin @ {:p}", self)) .field("username", &self.username) .field("sess_id", &self.sess_id) .field("sess_version", &self.sess_version) @@ -514,7 +514,7 @@ pub struct GstSDPTime { impl ::std::fmt::Debug for GstSDPTime { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstSDPTime @ {:?}", self as *const _)) + f.debug_struct(&format!("GstSDPTime @ {:p}", self)) .field("start", &self.start) .field("stop", &self.stop) .field("repeat", &self.repeat) @@ -531,7 +531,7 @@ pub struct GstSDPZone { impl ::std::fmt::Debug for GstSDPZone { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstSDPZone @ {:?}", self as *const _)) + f.debug_struct(&format!("GstSDPZone @ {:p}", self)) .field("time", &self.time) .field("typed_time", &self.typed_time) .finish() diff --git a/gstreamer-sdp/sys/tests/abi.rs b/gstreamer-sdp/sys/tests/abi.rs index b8614c9c4..3d2b71694 100644 --- a/gstreamer-sdp/sys/tests/abi.rs +++ b/gstreamer-sdp/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-sdp/sys/tests/constant.c b/gstreamer-sdp/sys/tests/constant.c index 51ca3cf96..32a7fd17f 100644 --- a/gstreamer-sdp/sys/tests/constant.c +++ b/gstreamer-sdp/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-sdp/sys/tests/layout.c b/gstreamer-sdp/sys/tests/layout.c index 7482a4fce..a23d1cb46 100644 --- a/gstreamer-sdp/sys/tests/layout.c +++ b/gstreamer-sdp/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-tag/sys/build.rs b/gstreamer-tag/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-tag/sys/build.rs +++ b/gstreamer-tag/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-tag/sys/src/lib.rs b/gstreamer-tag/sys/src/lib.rs index 3b209ddd9..bcbf41c57 100644 --- a/gstreamer-tag/sys/src/lib.rs +++ b/gstreamer-tag/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -179,7 +179,7 @@ pub struct GstTagDemuxClass { impl ::std::fmt::Debug for GstTagDemuxClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTagDemuxClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTagDemuxClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("min_start_size", &self.min_start_size) .field("min_end_size", &self.min_end_size) @@ -208,7 +208,7 @@ pub struct GstTagMuxClass { impl ::std::fmt::Debug for GstTagMuxClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTagMuxClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTagMuxClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("render_start_tag", &self.render_start_tag) .field("render_end_tag", &self.render_end_tag) @@ -229,12 +229,9 @@ pub struct GstTagXmpWriterInterface { impl ::std::fmt::Debug for GstTagXmpWriterInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstTagXmpWriterInterface @ {:?}", - self as *const _ - )) - .field("parent", &self.parent) - .finish() + f.debug_struct(&format!("GstTagXmpWriterInterface @ {:p}", self)) + .field("parent", &self.parent) + .finish() } } @@ -249,7 +246,7 @@ pub struct GstTagDemux { impl ::std::fmt::Debug for GstTagDemux { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTagDemux @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTagDemux @ {:p}", self)) .field("element", &self.element) .finish() } @@ -265,7 +262,7 @@ pub struct GstTagMux { impl ::std::fmt::Debug for GstTagMux { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTagMux @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTagMux @ {:p}", self)) .field("element", &self.element) .finish() } @@ -277,7 +274,7 @@ pub struct GstTagXmpWriter(c_void); impl ::std::fmt::Debug for GstTagXmpWriter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GstTagXmpWriter @ {:?}", self as *const _) + write!(f, "GstTagXmpWriter @ {:p}", self) } } diff --git a/gstreamer-tag/sys/tests/abi.rs b/gstreamer-tag/sys/tests/abi.rs index c92948b08..ad363d08b 100644 --- a/gstreamer-tag/sys/tests/abi.rs +++ b/gstreamer-tag/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-tag/sys/tests/constant.c b/gstreamer-tag/sys/tests/constant.c index 748fc6a3a..843f4f8a4 100644 --- a/gstreamer-tag/sys/tests/constant.c +++ b/gstreamer-tag/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-tag/sys/tests/layout.c b/gstreamer-tag/sys/tests/layout.c index 026fc57cd..d3289cf7f 100644 --- a/gstreamer-tag/sys/tests/layout.c +++ b/gstreamer-tag/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-video/src/auto/enums.rs b/gstreamer-video/src/auto/enums.rs index 7af478c75..a5b8bac8d 100644 --- a/gstreamer-video/src/auto/enums.rs +++ b/gstreamer-video/src/auto/enums.rs @@ -50,9 +50,9 @@ impl FromGlib for VideoAFDSpec { unsafe fn from_glib(value: ffi::GstVideoAFDSpec) -> Self { skip_assert_initialized!(); match value { - 0 => Self::DvbEtsi, - 1 => Self::AtscA53, - 2 => Self::SmpteSt20161, + ffi::GST_VIDEO_AFD_SPEC_DVB_ETSI => Self::DvbEtsi, + ffi::GST_VIDEO_AFD_SPEC_ATSC_A53 => Self::AtscA53, + ffi::GST_VIDEO_AFD_SPEC_SMPTE_ST2016_1 => Self::SmpteSt20161, value => Self::__Unknown(value), } } @@ -162,17 +162,17 @@ impl FromGlib for VideoAFDValue { unsafe fn from_glib(value: ffi::GstVideoAFDValue) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Unavailable, - 2 => Self::_169TopAligned, - 3 => Self::_149TopAligned, - 4 => Self::GreaterThan169, - 8 => Self::_43Full169Full, - 9 => Self::_43Full43Pillar, - 10 => Self::_169Letter169Full, - 11 => Self::_149Letter149Pillar, - 13 => Self::_43Full149Center, - 14 => Self::_169Letter149Center, - 15 => Self::_169Letter43Center, + ffi::GST_VIDEO_AFD_UNAVAILABLE => Self::Unavailable, + ffi::GST_VIDEO_AFD_16_9_TOP_ALIGNED => Self::_169TopAligned, + ffi::GST_VIDEO_AFD_14_9_TOP_ALIGNED => Self::_149TopAligned, + ffi::GST_VIDEO_AFD_GREATER_THAN_16_9 => Self::GreaterThan169, + ffi::GST_VIDEO_AFD_4_3_FULL_16_9_FULL => Self::_43Full169Full, + ffi::GST_VIDEO_AFD_4_3_FULL_4_3_PILLAR => Self::_43Full43Pillar, + ffi::GST_VIDEO_AFD_16_9_LETTER_16_9_FULL => Self::_169Letter169Full, + ffi::GST_VIDEO_AFD_14_9_LETTER_14_9_PILLAR => Self::_149Letter149Pillar, + ffi::GST_VIDEO_AFD_4_3_FULL_14_9_CENTER => Self::_43Full149Center, + ffi::GST_VIDEO_AFD_16_9_LETTER_14_9_CENTER => Self::_169Letter149Center, + ffi::GST_VIDEO_AFD_16_9_LETTER_4_3_CENTER => Self::_169Letter43Center, value => Self::__Unknown(value), } } @@ -252,9 +252,9 @@ impl FromGlib for VideoAlphaMode { unsafe fn from_glib(value: ffi::GstVideoAlphaMode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Copy, - 1 => Self::Set, - 2 => Self::Mult, + ffi::GST_VIDEO_ALPHA_MODE_COPY => Self::Copy, + ffi::GST_VIDEO_ALPHA_MODE_SET => Self::Set, + ffi::GST_VIDEO_ALPHA_MODE_MULT => Self::Mult, value => Self::__Unknown(value), } } @@ -354,11 +354,11 @@ impl FromGlib for VideoCaptionType { unsafe fn from_glib(value: ffi::GstVideoCaptionType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Unknown, - 1 => Self::Cea608Raw, - 2 => Self::Cea608S3341a, - 3 => Self::Cea708Raw, - 4 => Self::Cea708Cdp, + ffi::GST_VIDEO_CAPTION_TYPE_UNKNOWN => Self::Unknown, + ffi::GST_VIDEO_CAPTION_TYPE_CEA608_RAW => Self::Cea608Raw, + ffi::GST_VIDEO_CAPTION_TYPE_CEA608_S334_1A => Self::Cea608S3341a, + ffi::GST_VIDEO_CAPTION_TYPE_CEA708_RAW => Self::Cea708Raw, + ffi::GST_VIDEO_CAPTION_TYPE_CEA708_CDP => Self::Cea708Cdp, value => Self::__Unknown(value), } } @@ -441,10 +441,10 @@ impl FromGlib for VideoChromaMode { unsafe fn from_glib(value: ffi::GstVideoChromaMode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Full, - 1 => Self::UpsampleOnly, - 2 => Self::DownsampleOnly, - 3 => Self::None, + ffi::GST_VIDEO_CHROMA_MODE_FULL => Self::Full, + ffi::GST_VIDEO_CHROMA_MODE_UPSAMPLE_ONLY => Self::UpsampleOnly, + ffi::GST_VIDEO_CHROMA_MODE_DOWNSAMPLE_ONLY => Self::DownsampleOnly, + ffi::GST_VIDEO_CHROMA_MODE_NONE => Self::None, value => Self::__Unknown(value), } } @@ -546,13 +546,13 @@ impl FromGlib for VideoColorMatrix { unsafe fn from_glib(value: ffi::GstVideoColorMatrix) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Unknown, - 1 => Self::Rgb, - 2 => Self::Fcc, - 3 => Self::Bt709, - 4 => Self::Bt601, - 5 => Self::Smpte240m, - 6 => Self::Bt2020, + ffi::GST_VIDEO_COLOR_MATRIX_UNKNOWN => Self::Unknown, + ffi::GST_VIDEO_COLOR_MATRIX_RGB => Self::Rgb, + ffi::GST_VIDEO_COLOR_MATRIX_FCC => Self::Fcc, + ffi::GST_VIDEO_COLOR_MATRIX_BT709 => Self::Bt709, + ffi::GST_VIDEO_COLOR_MATRIX_BT601 => Self::Bt601, + ffi::GST_VIDEO_COLOR_MATRIX_SMPTE240M => Self::Smpte240m, + ffi::GST_VIDEO_COLOR_MATRIX_BT2020 => Self::Bt2020, value => Self::__Unknown(value), } } @@ -690,23 +690,23 @@ impl FromGlib for VideoColorPrimaries { unsafe fn from_glib(value: ffi::GstVideoColorPrimaries) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Unknown, - 1 => Self::Bt709, - 2 => Self::Bt470m, - 3 => Self::Bt470bg, - 4 => Self::Smpte170m, - 5 => Self::Smpte240m, - 6 => Self::Film, - 7 => Self::Bt2020, - 8 => Self::Adobergb, + ffi::GST_VIDEO_COLOR_PRIMARIES_UNKNOWN => Self::Unknown, + ffi::GST_VIDEO_COLOR_PRIMARIES_BT709 => Self::Bt709, + ffi::GST_VIDEO_COLOR_PRIMARIES_BT470M => Self::Bt470m, + ffi::GST_VIDEO_COLOR_PRIMARIES_BT470BG => Self::Bt470bg, + ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTE170M => Self::Smpte170m, + ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTE240M => Self::Smpte240m, + ffi::GST_VIDEO_COLOR_PRIMARIES_FILM => Self::Film, + ffi::GST_VIDEO_COLOR_PRIMARIES_BT2020 => Self::Bt2020, + ffi::GST_VIDEO_COLOR_PRIMARIES_ADOBERGB => Self::Adobergb, #[cfg(any(feature = "v1_16", feature = "dox"))] - 9 => Self::Smptest428, + ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTEST428 => Self::Smptest428, #[cfg(any(feature = "v1_16", feature = "dox"))] - 10 => Self::Smpterp431, + ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTERP431 => Self::Smpterp431, #[cfg(any(feature = "v1_16", feature = "dox"))] - 11 => Self::Smpteeg432, + ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTEEG432 => Self::Smpteeg432, #[cfg(any(feature = "v1_16", feature = "dox"))] - 12 => Self::Ebu3213, + ffi::GST_VIDEO_COLOR_PRIMARIES_EBU3213 => Self::Ebu3213, value => Self::__Unknown(value), } } @@ -784,11 +784,11 @@ impl FromGlib for VideoDitherMethod { unsafe fn from_glib(value: ffi::GstVideoDitherMethod) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Verterr, - 2 => Self::FloydSteinberg, - 3 => Self::SierraLite, - 4 => Self::Bayer, + ffi::GST_VIDEO_DITHER_NONE => Self::None, + ffi::GST_VIDEO_DITHER_VERTERR => Self::Verterr, + ffi::GST_VIDEO_DITHER_FLOYD_STEINBERG => Self::FloydSteinberg, + ffi::GST_VIDEO_DITHER_SIERRA_LITE => Self::SierraLite, + ffi::GST_VIDEO_DITHER_BAYER => Self::Bayer, value => Self::__Unknown(value), } } @@ -889,9 +889,9 @@ impl FromGlib for VideoFieldOrder { unsafe fn from_glib(value: ffi::GstVideoFieldOrder) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Unknown, - 1 => Self::TopFieldFirst, - 2 => Self::BottomFieldFirst, + ffi::GST_VIDEO_FIELD_ORDER_UNKNOWN => Self::Unknown, + ffi::GST_VIDEO_FIELD_ORDER_TOP_FIELD_FIRST => Self::TopFieldFirst, + ffi::GST_VIDEO_FIELD_ORDER_BOTTOM_FIELD_FIRST => Self::BottomFieldFirst, value => Self::__Unknown(value), } } @@ -1406,143 +1406,143 @@ impl FromGlib for VideoFormat { unsafe fn from_glib(value: ffi::GstVideoFormat) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Unknown, - 1 => Self::Encoded, - 2 => Self::I420, - 3 => Self::Yv12, - 4 => Self::Yuy2, - 5 => Self::Uyvy, - 6 => Self::Ayuv, - 7 => Self::Rgbx, - 8 => Self::Bgrx, - 9 => Self::Xrgb, - 10 => Self::Xbgr, - 11 => Self::Rgba, - 12 => Self::Bgra, - 13 => Self::Argb, - 14 => Self::Abgr, - 15 => Self::Rgb, - 16 => Self::Bgr, - 17 => Self::Y41b, - 18 => Self::Y42b, - 19 => Self::Yvyu, - 20 => Self::Y444, - 21 => Self::V210, - 22 => Self::V216, - 23 => Self::Nv12, - 24 => Self::Nv21, - 25 => Self::Gray8, - 26 => Self::Gray16Be, - 27 => Self::Gray16Le, - 28 => Self::V308, - 29 => Self::Rgb16, - 30 => Self::Bgr16, - 31 => Self::Rgb15, - 32 => Self::Bgr15, - 33 => Self::Uyvp, - 34 => Self::A420, - 35 => Self::Rgb8p, - 36 => Self::Yuv9, - 37 => Self::Yvu9, - 38 => Self::Iyu1, - 39 => Self::Argb64, - 40 => Self::Ayuv64, - 41 => Self::R210, - 42 => Self::I42010be, - 43 => Self::I42010le, - 44 => Self::I42210be, - 45 => Self::I42210le, - 46 => Self::Y44410be, - 47 => Self::Y44410le, - 48 => Self::Gbr, - 49 => Self::Gbr10be, - 50 => Self::Gbr10le, - 51 => Self::Nv16, - 52 => Self::Nv24, - 53 => Self::Nv1264z32, - 54 => Self::A42010be, - 55 => Self::A42010le, - 56 => Self::A42210be, - 57 => Self::A42210le, - 58 => Self::A44410be, - 59 => Self::A44410le, - 60 => Self::Nv61, + ffi::GST_VIDEO_FORMAT_UNKNOWN => Self::Unknown, + ffi::GST_VIDEO_FORMAT_ENCODED => Self::Encoded, + ffi::GST_VIDEO_FORMAT_I420 => Self::I420, + ffi::GST_VIDEO_FORMAT_YV12 => Self::Yv12, + ffi::GST_VIDEO_FORMAT_YUY2 => Self::Yuy2, + ffi::GST_VIDEO_FORMAT_UYVY => Self::Uyvy, + ffi::GST_VIDEO_FORMAT_AYUV => Self::Ayuv, + ffi::GST_VIDEO_FORMAT_RGBx => Self::Rgbx, + ffi::GST_VIDEO_FORMAT_BGRx => Self::Bgrx, + ffi::GST_VIDEO_FORMAT_xRGB => Self::Xrgb, + ffi::GST_VIDEO_FORMAT_xBGR => Self::Xbgr, + ffi::GST_VIDEO_FORMAT_RGBA => Self::Rgba, + ffi::GST_VIDEO_FORMAT_BGRA => Self::Bgra, + ffi::GST_VIDEO_FORMAT_ARGB => Self::Argb, + ffi::GST_VIDEO_FORMAT_ABGR => Self::Abgr, + ffi::GST_VIDEO_FORMAT_RGB => Self::Rgb, + ffi::GST_VIDEO_FORMAT_BGR => Self::Bgr, + ffi::GST_VIDEO_FORMAT_Y41B => Self::Y41b, + ffi::GST_VIDEO_FORMAT_Y42B => Self::Y42b, + ffi::GST_VIDEO_FORMAT_YVYU => Self::Yvyu, + ffi::GST_VIDEO_FORMAT_Y444 => Self::Y444, + ffi::GST_VIDEO_FORMAT_v210 => Self::V210, + ffi::GST_VIDEO_FORMAT_v216 => Self::V216, + ffi::GST_VIDEO_FORMAT_NV12 => Self::Nv12, + ffi::GST_VIDEO_FORMAT_NV21 => Self::Nv21, + ffi::GST_VIDEO_FORMAT_GRAY8 => Self::Gray8, + ffi::GST_VIDEO_FORMAT_GRAY16_BE => Self::Gray16Be, + ffi::GST_VIDEO_FORMAT_GRAY16_LE => Self::Gray16Le, + ffi::GST_VIDEO_FORMAT_v308 => Self::V308, + ffi::GST_VIDEO_FORMAT_RGB16 => Self::Rgb16, + ffi::GST_VIDEO_FORMAT_BGR16 => Self::Bgr16, + ffi::GST_VIDEO_FORMAT_RGB15 => Self::Rgb15, + ffi::GST_VIDEO_FORMAT_BGR15 => Self::Bgr15, + ffi::GST_VIDEO_FORMAT_UYVP => Self::Uyvp, + ffi::GST_VIDEO_FORMAT_A420 => Self::A420, + ffi::GST_VIDEO_FORMAT_RGB8P => Self::Rgb8p, + ffi::GST_VIDEO_FORMAT_YUV9 => Self::Yuv9, + ffi::GST_VIDEO_FORMAT_YVU9 => Self::Yvu9, + ffi::GST_VIDEO_FORMAT_IYU1 => Self::Iyu1, + ffi::GST_VIDEO_FORMAT_ARGB64 => Self::Argb64, + ffi::GST_VIDEO_FORMAT_AYUV64 => Self::Ayuv64, + ffi::GST_VIDEO_FORMAT_r210 => Self::R210, + ffi::GST_VIDEO_FORMAT_I420_10BE => Self::I42010be, + ffi::GST_VIDEO_FORMAT_I420_10LE => Self::I42010le, + ffi::GST_VIDEO_FORMAT_I422_10BE => Self::I42210be, + ffi::GST_VIDEO_FORMAT_I422_10LE => Self::I42210le, + ffi::GST_VIDEO_FORMAT_Y444_10BE => Self::Y44410be, + ffi::GST_VIDEO_FORMAT_Y444_10LE => Self::Y44410le, + ffi::GST_VIDEO_FORMAT_GBR => Self::Gbr, + ffi::GST_VIDEO_FORMAT_GBR_10BE => Self::Gbr10be, + ffi::GST_VIDEO_FORMAT_GBR_10LE => Self::Gbr10le, + ffi::GST_VIDEO_FORMAT_NV16 => Self::Nv16, + ffi::GST_VIDEO_FORMAT_NV24 => Self::Nv24, + ffi::GST_VIDEO_FORMAT_NV12_64Z32 => Self::Nv1264z32, + ffi::GST_VIDEO_FORMAT_A420_10BE => Self::A42010be, + ffi::GST_VIDEO_FORMAT_A420_10LE => Self::A42010le, + ffi::GST_VIDEO_FORMAT_A422_10BE => Self::A42210be, + ffi::GST_VIDEO_FORMAT_A422_10LE => Self::A42210le, + ffi::GST_VIDEO_FORMAT_A444_10BE => Self::A44410be, + ffi::GST_VIDEO_FORMAT_A444_10LE => Self::A44410le, + ffi::GST_VIDEO_FORMAT_NV61 => Self::Nv61, #[cfg(any(feature = "v1_10", feature = "dox"))] - 61 => Self::P01010be, + ffi::GST_VIDEO_FORMAT_P010_10BE => Self::P01010be, #[cfg(any(feature = "v1_10", feature = "dox"))] - 62 => Self::P01010le, + ffi::GST_VIDEO_FORMAT_P010_10LE => Self::P01010le, #[cfg(any(feature = "v1_10", feature = "dox"))] - 63 => Self::Iyu2, + ffi::GST_VIDEO_FORMAT_IYU2 => Self::Iyu2, #[cfg(any(feature = "v1_12", feature = "dox"))] - 64 => Self::Vyuy, + ffi::GST_VIDEO_FORMAT_VYUY => Self::Vyuy, #[cfg(any(feature = "v1_12", feature = "dox"))] - 65 => Self::Gbra, + ffi::GST_VIDEO_FORMAT_GBRA => Self::Gbra, #[cfg(any(feature = "v1_12", feature = "dox"))] - 66 => Self::Gbra10be, + ffi::GST_VIDEO_FORMAT_GBRA_10BE => Self::Gbra10be, #[cfg(any(feature = "v1_12", feature = "dox"))] - 67 => Self::Gbra10le, + ffi::GST_VIDEO_FORMAT_GBRA_10LE => Self::Gbra10le, #[cfg(any(feature = "v1_12", feature = "dox"))] - 68 => Self::Gbr12be, + ffi::GST_VIDEO_FORMAT_GBR_12BE => Self::Gbr12be, #[cfg(any(feature = "v1_12", feature = "dox"))] - 69 => Self::Gbr12le, + ffi::GST_VIDEO_FORMAT_GBR_12LE => Self::Gbr12le, #[cfg(any(feature = "v1_12", feature = "dox"))] - 70 => Self::Gbra12be, + ffi::GST_VIDEO_FORMAT_GBRA_12BE => Self::Gbra12be, #[cfg(any(feature = "v1_12", feature = "dox"))] - 71 => Self::Gbra12le, + ffi::GST_VIDEO_FORMAT_GBRA_12LE => Self::Gbra12le, #[cfg(any(feature = "v1_12", feature = "dox"))] - 72 => Self::I42012be, + ffi::GST_VIDEO_FORMAT_I420_12BE => Self::I42012be, #[cfg(any(feature = "v1_12", feature = "dox"))] - 73 => Self::I42012le, + ffi::GST_VIDEO_FORMAT_I420_12LE => Self::I42012le, #[cfg(any(feature = "v1_12", feature = "dox"))] - 74 => Self::I42212be, + ffi::GST_VIDEO_FORMAT_I422_12BE => Self::I42212be, #[cfg(any(feature = "v1_12", feature = "dox"))] - 75 => Self::I42212le, + ffi::GST_VIDEO_FORMAT_I422_12LE => Self::I42212le, #[cfg(any(feature = "v1_12", feature = "dox"))] - 76 => Self::Y44412be, + ffi::GST_VIDEO_FORMAT_Y444_12BE => Self::Y44412be, #[cfg(any(feature = "v1_12", feature = "dox"))] - 77 => Self::Y44412le, + ffi::GST_VIDEO_FORMAT_Y444_12LE => Self::Y44412le, #[cfg(any(feature = "v1_14", feature = "dox"))] - 78 => Self::Gray10Le32, + ffi::GST_VIDEO_FORMAT_GRAY10_LE32 => Self::Gray10Le32, #[cfg(any(feature = "v1_14", feature = "dox"))] - 79 => Self::Nv1210le32, + ffi::GST_VIDEO_FORMAT_NV12_10LE32 => Self::Nv1210le32, #[cfg(any(feature = "v1_14", feature = "dox"))] - 80 => Self::Nv1610le32, + ffi::GST_VIDEO_FORMAT_NV16_10LE32 => Self::Nv1610le32, #[cfg(any(feature = "v1_16", feature = "dox"))] - 81 => Self::Nv1210le40, + ffi::GST_VIDEO_FORMAT_NV12_10LE40 => Self::Nv1210le40, #[cfg(any(feature = "v1_16", feature = "dox"))] - 82 => Self::Y210, + ffi::GST_VIDEO_FORMAT_Y210 => Self::Y210, #[cfg(any(feature = "v1_16", feature = "dox"))] - 83 => Self::Y410, + ffi::GST_VIDEO_FORMAT_Y410 => Self::Y410, #[cfg(any(feature = "v1_16", feature = "dox"))] - 84 => Self::Vuya, + ffi::GST_VIDEO_FORMAT_VUYA => Self::Vuya, #[cfg(any(feature = "v1_16", feature = "dox"))] - 85 => Self::Bgr10a2Le, + ffi::GST_VIDEO_FORMAT_BGR10A2_LE => Self::Bgr10a2Le, #[cfg(any(feature = "v1_18", feature = "dox"))] - 86 => Self::Rgb10a2Le, + ffi::GST_VIDEO_FORMAT_RGB10A2_LE => Self::Rgb10a2Le, #[cfg(any(feature = "v1_18", feature = "dox"))] - 87 => Self::Y44416be, + ffi::GST_VIDEO_FORMAT_Y444_16BE => Self::Y44416be, #[cfg(any(feature = "v1_18", feature = "dox"))] - 88 => Self::Y44416le, + ffi::GST_VIDEO_FORMAT_Y444_16LE => Self::Y44416le, #[cfg(any(feature = "v1_18", feature = "dox"))] - 89 => Self::P016Be, + ffi::GST_VIDEO_FORMAT_P016_BE => Self::P016Be, #[cfg(any(feature = "v1_18", feature = "dox"))] - 90 => Self::P016Le, + ffi::GST_VIDEO_FORMAT_P016_LE => Self::P016Le, #[cfg(any(feature = "v1_18", feature = "dox"))] - 91 => Self::P012Be, + ffi::GST_VIDEO_FORMAT_P012_BE => Self::P012Be, #[cfg(any(feature = "v1_18", feature = "dox"))] - 92 => Self::P012Le, + ffi::GST_VIDEO_FORMAT_P012_LE => Self::P012Le, #[cfg(any(feature = "v1_18", feature = "dox"))] - 93 => Self::Y212Be, + ffi::GST_VIDEO_FORMAT_Y212_BE => Self::Y212Be, #[cfg(any(feature = "v1_18", feature = "dox"))] - 94 => Self::Y212Le, + ffi::GST_VIDEO_FORMAT_Y212_LE => Self::Y212Le, #[cfg(any(feature = "v1_18", feature = "dox"))] - 95 => Self::Y412Be, + ffi::GST_VIDEO_FORMAT_Y412_BE => Self::Y412Be, #[cfg(any(feature = "v1_18", feature = "dox"))] - 96 => Self::Y412Le, + ffi::GST_VIDEO_FORMAT_Y412_LE => Self::Y412Le, #[cfg(any(feature = "v1_18", feature = "dox"))] - 97 => Self::Nv124l4, + ffi::GST_VIDEO_FORMAT_NV12_4L4 => Self::Nv124l4, #[cfg(any(feature = "v1_18", feature = "dox"))] - 98 => Self::Nv1232l32, + ffi::GST_VIDEO_FORMAT_NV12_32L32 => Self::Nv1232l32, value => Self::__Unknown(value), } } @@ -1611,8 +1611,8 @@ impl FromGlib for VideoGammaMode { unsafe fn from_glib(value: ffi::GstVideoGammaMode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Remap, + ffi::GST_VIDEO_GAMMA_MODE_NONE => Self::None, + ffi::GST_VIDEO_GAMMA_MODE_REMAP => Self::Remap, value => Self::__Unknown(value), } } @@ -1724,12 +1724,12 @@ impl FromGlib for VideoInterlaceMode { unsafe fn from_glib(value: ffi::GstVideoInterlaceMode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Progressive, - 1 => Self::Interleaved, - 2 => Self::Mixed, - 3 => Self::Fields, + ffi::GST_VIDEO_INTERLACE_MODE_PROGRESSIVE => Self::Progressive, + ffi::GST_VIDEO_INTERLACE_MODE_INTERLEAVED => Self::Interleaved, + ffi::GST_VIDEO_INTERLACE_MODE_MIXED => Self::Mixed, + ffi::GST_VIDEO_INTERLACE_MODE_FIELDS => Self::Fields, #[cfg(any(feature = "v1_16", feature = "dox"))] - 4 => Self::Alternate, + ffi::GST_VIDEO_INTERLACE_MODE_ALTERNATE => Self::Alternate, value => Self::__Unknown(value), } } @@ -1804,10 +1804,10 @@ impl FromGlib for VideoMatrixMode { unsafe fn from_glib(value: ffi::GstVideoMatrixMode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Full, - 1 => Self::InputOnly, - 2 => Self::OutputOnly, - 3 => Self::None, + ffi::GST_VIDEO_MATRIX_MODE_FULL => Self::Full, + ffi::GST_VIDEO_MATRIX_MODE_INPUT_ONLY => Self::InputOnly, + ffi::GST_VIDEO_MATRIX_MODE_OUTPUT_ONLY => Self::OutputOnly, + ffi::GST_VIDEO_MATRIX_MODE_NONE => Self::None, value => Self::__Unknown(value), } } @@ -1902,16 +1902,18 @@ impl FromGlib for VideoMultiviewFramePacking unsafe fn from_glib(value: ffi::GstVideoMultiviewFramePacking) -> Self { skip_assert_initialized!(); match value { - -1 => Self::None, - 0 => Self::Mono, - 1 => Self::Left, - 2 => Self::Right, - 3 => Self::SideBySide, - 4 => Self::SideBySideQuincunx, - 5 => Self::ColumnInterleaved, - 6 => Self::RowInterleaved, - 7 => Self::TopBottom, - 8 => Self::Checkerboard, + ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_NONE => Self::None, + ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_MONO => Self::Mono, + ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_LEFT => Self::Left, + ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_RIGHT => Self::Right, + ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE => Self::SideBySide, + ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE_QUINCUNX => { + Self::SideBySideQuincunx + } + ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_COLUMN_INTERLEAVED => Self::ColumnInterleaved, + ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_ROW_INTERLEAVED => Self::RowInterleaved, + ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_TOP_BOTTOM => Self::TopBottom, + ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_CHECKERBOARD => Self::Checkerboard, value => Self::__Unknown(value), } } @@ -2035,19 +2037,19 @@ impl FromGlib for VideoMultiviewMode { unsafe fn from_glib(value: ffi::GstVideoMultiviewMode) -> Self { skip_assert_initialized!(); match value { - -1 => Self::None, - 0 => Self::Mono, - 1 => Self::Left, - 2 => Self::Right, - 3 => Self::SideBySide, - 4 => Self::SideBySideQuincunx, - 5 => Self::ColumnInterleaved, - 6 => Self::RowInterleaved, - 7 => Self::TopBottom, - 8 => Self::Checkerboard, - 32 => Self::FrameByFrame, - 33 => Self::MultiviewFrameByFrame, - 34 => Self::Separated, + ffi::GST_VIDEO_MULTIVIEW_MODE_NONE => Self::None, + ffi::GST_VIDEO_MULTIVIEW_MODE_MONO => Self::Mono, + ffi::GST_VIDEO_MULTIVIEW_MODE_LEFT => Self::Left, + ffi::GST_VIDEO_MULTIVIEW_MODE_RIGHT => Self::Right, + ffi::GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE => Self::SideBySide, + ffi::GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE_QUINCUNX => Self::SideBySideQuincunx, + ffi::GST_VIDEO_MULTIVIEW_MODE_COLUMN_INTERLEAVED => Self::ColumnInterleaved, + ffi::GST_VIDEO_MULTIVIEW_MODE_ROW_INTERLEAVED => Self::RowInterleaved, + ffi::GST_VIDEO_MULTIVIEW_MODE_TOP_BOTTOM => Self::TopBottom, + ffi::GST_VIDEO_MULTIVIEW_MODE_CHECKERBOARD => Self::Checkerboard, + ffi::GST_VIDEO_MULTIVIEW_MODE_FRAME_BY_FRAME => Self::FrameByFrame, + ffi::GST_VIDEO_MULTIVIEW_MODE_MULTIVIEW_FRAME_BY_FRAME => Self::MultiviewFrameByFrame, + ffi::GST_VIDEO_MULTIVIEW_MODE_SEPARATED => Self::Separated, value => Self::__Unknown(value), } } @@ -2146,16 +2148,16 @@ impl FromGlib for VideoOrientationMethod { unsafe fn from_glib(value: ffi::GstVideoOrientationMethod) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Identity, - 1 => Self::_90r, - 2 => Self::_180, - 3 => Self::_90l, - 4 => Self::Horiz, - 5 => Self::Vert, - 6 => Self::UlLr, - 7 => Self::UrLl, - 8 => Self::Auto, - 9 => Self::Custom, + ffi::GST_VIDEO_ORIENTATION_IDENTITY => Self::Identity, + ffi::GST_VIDEO_ORIENTATION_90R => Self::_90r, + ffi::GST_VIDEO_ORIENTATION_180 => Self::_180, + ffi::GST_VIDEO_ORIENTATION_90L => Self::_90l, + ffi::GST_VIDEO_ORIENTATION_HORIZ => Self::Horiz, + ffi::GST_VIDEO_ORIENTATION_VERT => Self::Vert, + ffi::GST_VIDEO_ORIENTATION_UL_LR => Self::UlLr, + ffi::GST_VIDEO_ORIENTATION_UR_LL => Self::UrLl, + ffi::GST_VIDEO_ORIENTATION_AUTO => Self::Auto, + ffi::GST_VIDEO_ORIENTATION_CUSTOM => Self::Custom, value => Self::__Unknown(value), } } @@ -2235,9 +2237,9 @@ impl FromGlib for VideoPrimariesMode { unsafe fn from_glib(value: ffi::GstVideoPrimariesMode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::MergeOnly, - 2 => Self::Fast, + ffi::GST_VIDEO_PRIMARIES_MODE_NONE => Self::None, + ffi::GST_VIDEO_PRIMARIES_MODE_MERGE_ONLY => Self::MergeOnly, + ffi::GST_VIDEO_PRIMARIES_MODE_FAST => Self::Fast, value => Self::__Unknown(value), } } @@ -2315,11 +2317,11 @@ impl FromGlib for VideoResamplerMethod { unsafe fn from_glib(value: ffi::GstVideoResamplerMethod) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Nearest, - 1 => Self::Linear, - 2 => Self::Cubic, - 3 => Self::Sinc, - 4 => Self::Lanczos, + ffi::GST_VIDEO_RESAMPLER_METHOD_NEAREST => Self::Nearest, + ffi::GST_VIDEO_RESAMPLER_METHOD_LINEAR => Self::Linear, + ffi::GST_VIDEO_RESAMPLER_METHOD_CUBIC => Self::Cubic, + ffi::GST_VIDEO_RESAMPLER_METHOD_SINC => Self::Sinc, + ffi::GST_VIDEO_RESAMPLER_METHOD_LANCZOS => Self::Lanczos, value => Self::__Unknown(value), } } @@ -2394,10 +2396,10 @@ impl FromGlib for VideoTileMode { unsafe fn from_glib(value: ffi::GstVideoTileMode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Unknown, - 65536 => Self::Zflipz2x2, + ffi::GST_VIDEO_TILE_MODE_UNKNOWN => Self::Unknown, + ffi::GST_VIDEO_TILE_MODE_ZFLIPZ_2X2 => Self::Zflipz2x2, #[cfg(any(feature = "v1_18", feature = "dox"))] - 131072 => Self::Linear, + ffi::GST_VIDEO_TILE_MODE_LINEAR => Self::Linear, value => Self::__Unknown(value), } } @@ -2556,27 +2558,27 @@ impl FromGlib for VideoTransferFunction { unsafe fn from_glib(value: ffi::GstVideoTransferFunction) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Unknown, - 1 => Self::Gamma10, - 2 => Self::Gamma18, - 3 => Self::Gamma20, - 4 => Self::Gamma22, - 5 => Self::Bt709, - 6 => Self::Smpte240m, - 7 => Self::Srgb, - 8 => Self::Gamma28, - 9 => Self::Log100, - 10 => Self::Log316, - 11 => Self::Bt202012, - 12 => Self::Adobergb, + ffi::GST_VIDEO_TRANSFER_UNKNOWN => Self::Unknown, + ffi::GST_VIDEO_TRANSFER_GAMMA10 => Self::Gamma10, + ffi::GST_VIDEO_TRANSFER_GAMMA18 => Self::Gamma18, + ffi::GST_VIDEO_TRANSFER_GAMMA20 => Self::Gamma20, + ffi::GST_VIDEO_TRANSFER_GAMMA22 => Self::Gamma22, + ffi::GST_VIDEO_TRANSFER_BT709 => Self::Bt709, + ffi::GST_VIDEO_TRANSFER_SMPTE240M => Self::Smpte240m, + ffi::GST_VIDEO_TRANSFER_SRGB => Self::Srgb, + ffi::GST_VIDEO_TRANSFER_GAMMA28 => Self::Gamma28, + ffi::GST_VIDEO_TRANSFER_LOG100 => Self::Log100, + ffi::GST_VIDEO_TRANSFER_LOG316 => Self::Log316, + ffi::GST_VIDEO_TRANSFER_BT2020_12 => Self::Bt202012, + ffi::GST_VIDEO_TRANSFER_ADOBERGB => Self::Adobergb, #[cfg(any(feature = "v1_18", feature = "dox"))] - 13 => Self::Bt202010, + ffi::GST_VIDEO_TRANSFER_BT2020_10 => Self::Bt202010, #[cfg(any(feature = "v1_18", feature = "dox"))] - 14 => Self::Smpte2084, + ffi::GST_VIDEO_TRANSFER_SMPTE2084 => Self::Smpte2084, #[cfg(any(feature = "v1_18", feature = "dox"))] - 15 => Self::AribStdB67, + ffi::GST_VIDEO_TRANSFER_ARIB_STD_B67 => Self::AribStdB67, #[cfg(any(feature = "v1_18", feature = "dox"))] - 16 => Self::Bt601, + ffi::GST_VIDEO_TRANSFER_BT601 => Self::Bt601, value => Self::__Unknown(value), } } diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-video/src/auto/versions.txt +++ b/gstreamer-video/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-video/sys/build.rs b/gstreamer-video/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-video/sys/build.rs +++ b/gstreamer-video/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-video/sys/src/lib.rs b/gstreamer-video/sys/src/lib.rs index 4fffca60e..ef3cacbce 100644 --- a/gstreamer-video/sys/src/lib.rs +++ b/gstreamer-video/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -619,13 +619,10 @@ pub union GstVideoCodecFrame_abidata { impl ::std::fmt::Debug for GstVideoCodecFrame_abidata { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoCodecFrame_abidata @ {:?}", - self as *const _ - )) - .field("ABI", unsafe { &self.ABI }) - .field("padding", unsafe { &self.padding }) - .finish() + f.debug_struct(&format!("GstVideoCodecFrame_abidata @ {:p}", self)) + .field("ABI", unsafe { &self.ABI }) + .field("padding", unsafe { &self.padding }) + .finish() } } @@ -638,7 +635,7 @@ pub union GstVideoInfo_ABI { impl ::std::fmt::Debug for GstVideoInfo_ABI { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoInfo_ABI @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoInfo_ABI @ {:p}", self)) .field("abi", unsafe { &self.abi }) .finish() } @@ -688,13 +685,10 @@ pub struct GstColorBalanceChannelClass { impl ::std::fmt::Debug for GstColorBalanceChannelClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstColorBalanceChannelClass @ {:?}", - self as *const _ - )) - .field("parent", &self.parent) - .field("value_changed", &self.value_changed) - .finish() + f.debug_struct(&format!("GstColorBalanceChannelClass @ {:p}", self)) + .field("parent", &self.parent) + .field("value_changed", &self.value_changed) + .finish() } } @@ -715,17 +709,14 @@ pub struct GstColorBalanceInterface { impl ::std::fmt::Debug for GstColorBalanceInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstColorBalanceInterface @ {:?}", - self as *const _ - )) - .field("iface", &self.iface) - .field("list_channels", &self.list_channels) - .field("set_value", &self.set_value) - .field("get_value", &self.get_value) - .field("get_balance_type", &self.get_balance_type) - .field("value_changed", &self.value_changed) - .finish() + f.debug_struct(&format!("GstColorBalanceInterface @ {:p}", self)) + .field("iface", &self.iface) + .field("list_channels", &self.list_channels) + .field("set_value", &self.set_value) + .field("get_value", &self.get_value) + .field("get_balance_type", &self.get_balance_type) + .field("value_changed", &self.value_changed) + .finish() } } @@ -738,7 +729,7 @@ pub struct GstNavigationInterface { impl ::std::fmt::Debug for GstNavigationInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstNavigationInterface @ {:?}", self as *const _)) + f.debug_struct(&format!("GstNavigationInterface @ {:p}", self)) .field("iface", &self.iface) .field("send_event", &self.send_event) .finish() @@ -756,7 +747,7 @@ pub struct GstVideoAFDMeta { impl ::std::fmt::Debug for GstVideoAFDMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoAFDMeta @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoAFDMeta @ {:p}", self)) .field("meta", &self.meta) .field("field", &self.field) .field("spec", &self.spec) @@ -774,13 +765,10 @@ pub struct GstVideoAffineTransformationMeta { impl ::std::fmt::Debug for GstVideoAffineTransformationMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoAffineTransformationMeta @ {:?}", - self as *const _ - )) - .field("meta", &self.meta) - .field("matrix", &self.matrix) - .finish() + f.debug_struct(&format!("GstVideoAffineTransformationMeta @ {:p}", self)) + .field("meta", &self.meta) + .field("matrix", &self.matrix) + .finish() } } @@ -816,7 +804,7 @@ pub struct GstVideoAggregatorClass { impl ::std::fmt::Debug for GstVideoAggregatorClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoAggregatorClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoAggregatorClass @ {:p}", self)) .field("update_caps", &self.update_caps) .field("aggregate_frames", &self.aggregate_frames) .field("create_output_buffer", &self.create_output_buffer) @@ -841,13 +829,10 @@ pub struct GstVideoAggregatorConvertPadClass { impl ::std::fmt::Debug for GstVideoAggregatorConvertPadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoAggregatorConvertPadClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .field("create_conversion_info", &self.create_conversion_info) - .finish() + f.debug_struct(&format!("GstVideoAggregatorConvertPadClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .field("create_conversion_info", &self.create_conversion_info) + .finish() } } @@ -881,16 +866,13 @@ pub struct GstVideoAggregatorPadClass { impl ::std::fmt::Debug for GstVideoAggregatorPadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoAggregatorPadClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .field("update_conversion_info", &self.update_conversion_info) - .field("prepare_frame", &self.prepare_frame) - .field("clean_frame", &self.clean_frame) - .field("_gst_reserved", &self._gst_reserved) - .finish() + f.debug_struct(&format!("GstVideoAggregatorPadClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .field("update_conversion_info", &self.update_conversion_info) + .field("prepare_frame", &self.prepare_frame) + .field("clean_frame", &self.clean_frame) + .field("_gst_reserved", &self._gst_reserved) + .finish() } } @@ -916,7 +898,7 @@ pub struct GstVideoAlignment { impl ::std::fmt::Debug for GstVideoAlignment { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoAlignment @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoAlignment @ {:p}", self)) .field("padding_top", &self.padding_top) .field("padding_bottom", &self.padding_bottom) .field("padding_left", &self.padding_left) @@ -938,7 +920,7 @@ pub struct GstVideoAncillary { impl ::std::fmt::Debug for GstVideoAncillary { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoAncillary @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoAncillary @ {:p}", self)) .field("DID", &self.DID) .field("SDID_block_number", &self.SDID_block_number) .field("data_count", &self.data_count) @@ -958,7 +940,7 @@ pub struct GstVideoBarMeta { impl ::std::fmt::Debug for GstVideoBarMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoBarMeta @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoBarMeta @ {:p}", self)) .field("meta", &self.meta) .field("field", &self.field) .field("is_letterbox", &self.is_letterbox) @@ -976,7 +958,7 @@ pub struct GstVideoBufferPoolClass { impl ::std::fmt::Debug for GstVideoBufferPoolClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoBufferPoolClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoBufferPoolClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -998,7 +980,7 @@ pub struct GstVideoCaptionMeta { impl ::std::fmt::Debug for GstVideoCaptionMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoCaptionMeta @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoCaptionMeta @ {:p}", self)) .field("meta", &self.meta) .field("caption_type", &self.caption_type) .field("data", &self.data) @@ -1035,7 +1017,7 @@ pub struct GstVideoCodecFrame { impl ::std::fmt::Debug for GstVideoCodecFrame { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoCodecFrame @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoCodecFrame @ {:p}", self)) .field("system_frame_number", &self.system_frame_number) .field("dts", &self.dts) .field("pts", &self.pts) @@ -1059,14 +1041,11 @@ pub struct GstVideoCodecFrame_abidata_ABI { impl ::std::fmt::Debug for GstVideoCodecFrame_abidata_ABI { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoCodecFrame_abidata_ABI @ {:?}", - self as *const _ - )) - .field("ts", &self.ts) - .field("ts2", &self.ts2) - .field("num_subframes", &self.num_subframes) - .finish() + f.debug_struct(&format!("GstVideoCodecFrame_abidata_ABI @ {:p}", self)) + .field("ts", &self.ts) + .field("ts2", &self.ts2) + .field("num_subframes", &self.num_subframes) + .finish() } } @@ -1083,7 +1062,7 @@ pub struct GstVideoCodecState { impl ::std::fmt::Debug for GstVideoCodecState { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoCodecState @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoCodecState @ {:p}", self)) .field("info", &self.info) .field("caps", &self.caps) .field("codec_data", &self.codec_data) @@ -1108,20 +1087,17 @@ pub struct GstVideoColorPrimariesInfo { impl ::std::fmt::Debug for GstVideoColorPrimariesInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoColorPrimariesInfo @ {:?}", - self as *const _ - )) - .field("primaries", &self.primaries) - .field("Wx", &self.Wx) - .field("Wy", &self.Wy) - .field("Rx", &self.Rx) - .field("Ry", &self.Ry) - .field("Gx", &self.Gx) - .field("Gy", &self.Gy) - .field("Bx", &self.Bx) - .field("By", &self.By) - .finish() + f.debug_struct(&format!("GstVideoColorPrimariesInfo @ {:p}", self)) + .field("primaries", &self.primaries) + .field("Wx", &self.Wx) + .field("Wy", &self.Wy) + .field("Rx", &self.Rx) + .field("Ry", &self.Ry) + .field("Gx", &self.Gx) + .field("Gy", &self.Gy) + .field("Bx", &self.Bx) + .field("By", &self.By) + .finish() } } @@ -1136,7 +1112,7 @@ pub struct GstVideoColorimetry { impl ::std::fmt::Debug for GstVideoColorimetry { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoColorimetry @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoColorimetry @ {:p}", self)) .field("range", &self.range) .field("matrix", &self.matrix) .field("transfer", &self.transfer) @@ -1155,16 +1131,13 @@ pub struct GstVideoContentLightLevel { impl ::std::fmt::Debug for GstVideoContentLightLevel { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoContentLightLevel @ {:?}", - self as *const _ - )) - .field("max_content_light_level", &self.max_content_light_level) - .field( - "max_frame_average_light_level", - &self.max_frame_average_light_level, - ) - .finish() + f.debug_struct(&format!("GstVideoContentLightLevel @ {:p}", self)) + .field("max_content_light_level", &self.max_content_light_level) + .field( + "max_frame_average_light_level", + &self.max_frame_average_light_level, + ) + .finish() } } @@ -1185,7 +1158,7 @@ pub struct GstVideoCropMeta { impl ::std::fmt::Debug for GstVideoCropMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoCropMeta @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoCropMeta @ {:p}", self)) .field("meta", &self.meta) .field("x", &self.x) .field("y", &self.y) @@ -1247,7 +1220,7 @@ pub struct GstVideoDecoderClass { impl ::std::fmt::Debug for GstVideoDecoderClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoDecoderClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoDecoderClass @ {:p}", self)) .field("open", &self.open) .field("close", &self.close) .field("start", &self.start) @@ -1285,12 +1258,9 @@ pub struct GstVideoDirectionInterface { impl ::std::fmt::Debug for GstVideoDirectionInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoDirectionInterface @ {:?}", - self as *const _ - )) - .field("iface", &self.iface) - .finish() + f.debug_struct(&format!("GstVideoDirectionInterface @ {:p}", self)) + .field("iface", &self.iface) + .finish() } } @@ -1345,7 +1315,7 @@ pub struct GstVideoEncoderClass { impl ::std::fmt::Debug for GstVideoEncoderClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoEncoderClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoEncoderClass @ {:p}", self)) .field("open", &self.open) .field("close", &self.close) .field("start", &self.start) @@ -1401,7 +1371,7 @@ pub struct GstVideoFilterClass { impl ::std::fmt::Debug for GstVideoFilterClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoFilterClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoFilterClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("set_info", &self.set_info) .field("transform_frame", &self.transform_frame) @@ -1439,7 +1409,7 @@ pub struct GstVideoFormatInfo { impl ::std::fmt::Debug for GstVideoFormatInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoFormatInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoFormatInfo @ {:p}", self)) .field("format", &self.format) .field("name", &self.name) .field("description", &self.description) @@ -1480,7 +1450,7 @@ pub struct GstVideoFrame { impl ::std::fmt::Debug for GstVideoFrame { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoFrame @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoFrame @ {:p}", self)) .field("info", &self.info) .field("flags", &self.flags) .field("buffer", &self.buffer) @@ -1508,15 +1478,12 @@ pub struct GstVideoGLTextureUploadMeta { impl ::std::fmt::Debug for GstVideoGLTextureUploadMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoGLTextureUploadMeta @ {:?}", - self as *const _ - )) - .field("meta", &self.meta) - .field("texture_orientation", &self.texture_orientation) - .field("n_textures", &self.n_textures) - .field("texture_type", &self.texture_type) - .finish() + f.debug_struct(&format!("GstVideoGLTextureUploadMeta @ {:p}", self)) + .field("meta", &self.meta) + .field("texture_orientation", &self.texture_orientation) + .field("n_textures", &self.n_textures) + .field("texture_type", &self.texture_type) + .finish() } } @@ -1543,7 +1510,7 @@ pub struct GstVideoInfo { impl ::std::fmt::Debug for GstVideoInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoInfo @ {:p}", self)) .field("finfo", &self.finfo) .field("interlace_mode", &self.interlace_mode) .field("flags", &self.flags) @@ -1574,7 +1541,7 @@ pub struct GstVideoInfo_ABI_abi { impl ::std::fmt::Debug for GstVideoInfo_ABI_abi { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoInfo_ABI_abi @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoInfo_ABI_abi @ {:p}", self)) .field("multiview_mode", &self.multiview_mode) .field("multiview_flags", &self.multiview_flags) .field("field_order", &self.field_order) @@ -1594,21 +1561,18 @@ pub struct GstVideoMasteringDisplayInfo { impl ::std::fmt::Debug for GstVideoMasteringDisplayInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoMasteringDisplayInfo @ {:?}", - self as *const _ - )) - .field("display_primaries", &self.display_primaries) - .field("white_point", &self.white_point) - .field( - "max_display_mastering_luminance", - &self.max_display_mastering_luminance, - ) - .field( - "min_display_mastering_luminance", - &self.min_display_mastering_luminance, - ) - .finish() + f.debug_struct(&format!("GstVideoMasteringDisplayInfo @ {:p}", self)) + .field("display_primaries", &self.display_primaries) + .field("white_point", &self.white_point) + .field( + "max_display_mastering_luminance", + &self.max_display_mastering_luminance, + ) + .field( + "min_display_mastering_luminance", + &self.min_display_mastering_luminance, + ) + .finish() } } @@ -1622,8 +1586,8 @@ pub struct GstVideoMasteringDisplayInfoCoordinates { impl ::std::fmt::Debug for GstVideoMasteringDisplayInfoCoordinates { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( - "GstVideoMasteringDisplayInfoCoordinates @ {:?}", - self as *const _ + "GstVideoMasteringDisplayInfoCoordinates @ {:p}", + self )) .field("x", &self.x) .field("y", &self.y) @@ -1661,7 +1625,7 @@ pub struct GstVideoMeta { impl ::std::fmt::Debug for GstVideoMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoMeta @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoMeta @ {:p}", self)) .field("meta", &self.meta) .field("buffer", &self.buffer) .field("flags", &self.flags) @@ -1688,7 +1652,7 @@ pub struct GstVideoMetaTransform { impl ::std::fmt::Debug for GstVideoMetaTransform { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoMetaTransform @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoMetaTransform @ {:p}", self)) .field("in_info", &self.in_info) .field("out_info", &self.out_info) .finish() @@ -1711,20 +1675,17 @@ pub struct GstVideoOrientationInterface { impl ::std::fmt::Debug for GstVideoOrientationInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoOrientationInterface @ {:?}", - self as *const _ - )) - .field("iface", &self.iface) - .field("get_hflip", &self.get_hflip) - .field("get_vflip", &self.get_vflip) - .field("get_hcenter", &self.get_hcenter) - .field("get_vcenter", &self.get_vcenter) - .field("set_hflip", &self.set_hflip) - .field("set_vflip", &self.set_vflip) - .field("set_hcenter", &self.set_hcenter) - .field("set_vcenter", &self.set_vcenter) - .finish() + f.debug_struct(&format!("GstVideoOrientationInterface @ {:p}", self)) + .field("iface", &self.iface) + .field("get_hflip", &self.get_hflip) + .field("get_vflip", &self.get_vflip) + .field("get_hcenter", &self.get_hcenter) + .field("get_vcenter", &self.get_vcenter) + .field("set_hflip", &self.set_hflip) + .field("set_vflip", &self.set_vflip) + .field("set_hcenter", &self.set_hcenter) + .field("set_vcenter", &self.set_vcenter) + .finish() } } @@ -1733,11 +1694,8 @@ pub struct GstVideoOverlayComposition(c_void); impl ::std::fmt::Debug for GstVideoOverlayComposition { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoOverlayComposition @ {:?}", - self as *const _ - )) - .finish() + f.debug_struct(&format!("GstVideoOverlayComposition @ {:p}", self)) + .finish() } } @@ -1750,13 +1708,10 @@ pub struct GstVideoOverlayCompositionMeta { impl ::std::fmt::Debug for GstVideoOverlayCompositionMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoOverlayCompositionMeta @ {:?}", - self as *const _ - )) - .field("meta", &self.meta) - .field("overlay", &self.overlay) - .finish() + f.debug_struct(&format!("GstVideoOverlayCompositionMeta @ {:p}", self)) + .field("meta", &self.meta) + .field("overlay", &self.overlay) + .finish() } } @@ -1773,16 +1728,13 @@ pub struct GstVideoOverlayInterface { impl ::std::fmt::Debug for GstVideoOverlayInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoOverlayInterface @ {:?}", - self as *const _ - )) - .field("iface", &self.iface) - .field("expose", &self.expose) - .field("handle_events", &self.handle_events) - .field("set_render_rectangle", &self.set_render_rectangle) - .field("set_window_handle", &self.set_window_handle) - .finish() + f.debug_struct(&format!("GstVideoOverlayInterface @ {:p}", self)) + .field("iface", &self.iface) + .field("expose", &self.expose) + .field("handle_events", &self.handle_events) + .field("set_render_rectangle", &self.set_render_rectangle) + .field("set_window_handle", &self.set_window_handle) + .finish() } } @@ -1791,11 +1743,8 @@ pub struct GstVideoOverlayRectangle(c_void); impl ::std::fmt::Debug for GstVideoOverlayRectangle { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoOverlayRectangle @ {:?}", - self as *const _ - )) - .finish() + f.debug_struct(&format!("GstVideoOverlayRectangle @ {:p}", self)) + .finish() } } @@ -1810,7 +1759,7 @@ pub struct GstVideoRectangle { impl ::std::fmt::Debug for GstVideoRectangle { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoRectangle @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoRectangle @ {:p}", self)) .field("x", &self.x) .field("y", &self.y) .field("w", &self.w) @@ -1835,20 +1784,17 @@ pub struct GstVideoRegionOfInterestMeta { impl ::std::fmt::Debug for GstVideoRegionOfInterestMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoRegionOfInterestMeta @ {:?}", - self as *const _ - )) - .field("meta", &self.meta) - .field("roi_type", &self.roi_type) - .field("id", &self.id) - .field("parent_id", &self.parent_id) - .field("x", &self.x) - .field("y", &self.y) - .field("w", &self.w) - .field("h", &self.h) - .field("params", &self.params) - .finish() + f.debug_struct(&format!("GstVideoRegionOfInterestMeta @ {:p}", self)) + .field("meta", &self.meta) + .field("roi_type", &self.roi_type) + .field("id", &self.id) + .field("parent_id", &self.parent_id) + .field("x", &self.x) + .field("y", &self.y) + .field("w", &self.w) + .field("h", &self.h) + .field("params", &self.params) + .finish() } } @@ -1868,7 +1814,7 @@ pub struct GstVideoResampler { impl ::std::fmt::Debug for GstVideoResampler { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoResampler @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoResampler @ {:p}", self)) .field("in_size", &self.in_size) .field("out_size", &self.out_size) .field("max_taps", &self.max_taps) @@ -1897,7 +1843,7 @@ pub struct GstVideoSinkClass { impl ::std::fmt::Debug for GstVideoSinkClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoSinkClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoSinkClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("show_frame", &self.show_frame) .finish() @@ -1922,7 +1868,7 @@ pub struct GstVideoTimeCode { impl ::std::fmt::Debug for GstVideoTimeCode { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoTimeCode @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoTimeCode @ {:p}", self)) .field("config", &self.config) .field("hours", &self.hours) .field("minutes", &self.minutes) @@ -1944,7 +1890,7 @@ pub struct GstVideoTimeCodeConfig { impl ::std::fmt::Debug for GstVideoTimeCodeConfig { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoTimeCodeConfig @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoTimeCodeConfig @ {:p}", self)) .field("fps_n", &self.fps_n) .field("fps_d", &self.fps_d) .field("flags", &self.flags) @@ -1964,15 +1910,12 @@ pub struct GstVideoTimeCodeInterval { impl ::std::fmt::Debug for GstVideoTimeCodeInterval { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoTimeCodeInterval @ {:?}", - self as *const _ - )) - .field("hours", &self.hours) - .field("minutes", &self.minutes) - .field("seconds", &self.seconds) - .field("frames", &self.frames) - .finish() + f.debug_struct(&format!("GstVideoTimeCodeInterval @ {:p}", self)) + .field("hours", &self.hours) + .field("minutes", &self.minutes) + .field("seconds", &self.seconds) + .field("frames", &self.frames) + .finish() } } @@ -1985,7 +1928,7 @@ pub struct GstVideoTimeCodeMeta { impl ::std::fmt::Debug for GstVideoTimeCodeMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoTimeCodeMeta @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoTimeCodeMeta @ {:p}", self)) .field("meta", &self.meta) .field("tc", &self.tc) .finish() @@ -1997,7 +1940,7 @@ pub struct GstVideoVBIEncoder(c_void); impl ::std::fmt::Debug for GstVideoVBIEncoder { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoVBIEncoder @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoVBIEncoder @ {:p}", self)) .finish() } } @@ -2007,7 +1950,7 @@ pub struct GstVideoVBIParser(c_void); impl ::std::fmt::Debug for GstVideoVBIParser { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoVBIParser @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoVBIParser @ {:p}", self)) .finish() } } @@ -2025,7 +1968,7 @@ pub struct GstColorBalanceChannel { impl ::std::fmt::Debug for GstColorBalanceChannel { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstColorBalanceChannel @ {:?}", self as *const _)) + f.debug_struct(&format!("GstColorBalanceChannel @ {:p}", self)) .field("parent", &self.parent) .field("label", &self.label) .field("min_value", &self.min_value) @@ -2045,7 +1988,7 @@ pub struct GstVideoAggregator { impl ::std::fmt::Debug for GstVideoAggregator { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoAggregator @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoAggregator @ {:p}", self)) .field("aggregator", &self.aggregator) .field("info", &self.info) .finish() @@ -2062,11 +2005,8 @@ pub struct GstVideoAggregatorConvertPad { impl ::std::fmt::Debug for GstVideoAggregatorConvertPad { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoAggregatorConvertPad @ {:?}", - self as *const _ - )) - .finish() + f.debug_struct(&format!("GstVideoAggregatorConvertPad @ {:p}", self)) + .finish() } } @@ -2081,7 +2021,7 @@ pub struct GstVideoAggregatorPad { impl ::std::fmt::Debug for GstVideoAggregatorPad { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoAggregatorPad @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoAggregatorPad @ {:p}", self)) .field("parent", &self.parent) .field("info", &self.info) .finish() @@ -2097,7 +2037,7 @@ pub struct GstVideoBufferPool { impl ::std::fmt::Debug for GstVideoBufferPool { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoBufferPool @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoBufferPool @ {:p}", self)) .field("bufferpool", &self.bufferpool) .field("priv_", &self.priv_) .finish() @@ -2119,7 +2059,7 @@ pub struct GstVideoDecoder { impl ::std::fmt::Debug for GstVideoDecoder { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoDecoder @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoDecoder @ {:p}", self)) .finish() } } @@ -2139,7 +2079,7 @@ pub struct GstVideoEncoder { impl ::std::fmt::Debug for GstVideoEncoder { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoEncoder @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoEncoder @ {:p}", self)) .finish() } } @@ -2156,7 +2096,7 @@ pub struct GstVideoFilter { impl ::std::fmt::Debug for GstVideoFilter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoFilter @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoFilter @ {:p}", self)) .field("element", &self.element) .field("negotiated", &self.negotiated) .field("in_info", &self.in_info) @@ -2170,11 +2110,8 @@ pub struct GstVideoMultiviewFlagsSet(c_void); impl ::std::fmt::Debug for GstVideoMultiviewFlagsSet { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstVideoMultiviewFlagsSet @ {:?}", - self as *const _ - )) - .finish() + f.debug_struct(&format!("GstVideoMultiviewFlagsSet @ {:p}", self)) + .finish() } } @@ -2190,7 +2127,7 @@ pub struct GstVideoSink { impl ::std::fmt::Debug for GstVideoSink { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstVideoSink @ {:?}", self as *const _)) + f.debug_struct(&format!("GstVideoSink @ {:p}", self)) .field("element", &self.element) .field("width", &self.width) .field("height", &self.height) @@ -2204,7 +2141,7 @@ pub struct GstColorBalance(c_void); impl ::std::fmt::Debug for GstColorBalance { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GstColorBalance @ {:?}", self as *const _) + write!(f, "GstColorBalance @ {:p}", self) } } @@ -2213,7 +2150,7 @@ pub struct GstNavigation(c_void); impl ::std::fmt::Debug for GstNavigation { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GstNavigation @ {:?}", self as *const _) + write!(f, "GstNavigation @ {:p}", self) } } @@ -2222,7 +2159,7 @@ pub struct GstVideoDirection(c_void); impl ::std::fmt::Debug for GstVideoDirection { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GstVideoDirection @ {:?}", self as *const _) + write!(f, "GstVideoDirection @ {:p}", self) } } @@ -2231,7 +2168,7 @@ pub struct GstVideoOrientation(c_void); impl ::std::fmt::Debug for GstVideoOrientation { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GstVideoOrientation @ {:?}", self as *const _) + write!(f, "GstVideoOrientation @ {:p}", self) } } @@ -2240,7 +2177,7 @@ pub struct GstVideoOverlay(c_void); impl ::std::fmt::Debug for GstVideoOverlay { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GstVideoOverlay @ {:?}", self as *const _) + write!(f, "GstVideoOverlay @ {:p}", self) } } diff --git a/gstreamer-video/sys/tests/abi.rs b/gstreamer-video/sys/tests/abi.rs index 1656cda1c..e6f8eb64b 100644 --- a/gstreamer-video/sys/tests/abi.rs +++ b/gstreamer-video/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-video/sys/tests/constant.c b/gstreamer-video/sys/tests/constant.c index 0a8f4e664..d5050ccb9 100644 --- a/gstreamer-video/sys/tests/constant.c +++ b/gstreamer-video/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-video/sys/tests/layout.c b/gstreamer-video/sys/tests/layout.c index 120c8a7c5..478b11dce 100644 --- a/gstreamer-video/sys/tests/layout.c +++ b/gstreamer-video/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-webrtc/src/auto/enums.rs b/gstreamer-webrtc/src/auto/enums.rs index ade268247..c84dd427b 100644 --- a/gstreamer-webrtc/src/auto/enums.rs +++ b/gstreamer-webrtc/src/auto/enums.rs @@ -53,10 +53,10 @@ impl FromGlib for WebRTCBundlePolicy { unsafe fn from_glib(value: ffi::GstWebRTCBundlePolicy) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Balanced, - 2 => Self::MaxCompat, - 3 => Self::MaxBundle, + ffi::GST_WEBRTC_BUNDLE_POLICY_NONE => Self::None, + ffi::GST_WEBRTC_BUNDLE_POLICY_BALANCED => Self::Balanced, + ffi::GST_WEBRTC_BUNDLE_POLICY_MAX_COMPAT => Self::MaxCompat, + ffi::GST_WEBRTC_BUNDLE_POLICY_MAX_BUNDLE => Self::MaxBundle, value => Self::__Unknown(value), } } @@ -139,10 +139,10 @@ impl FromGlib for WebRTCDTLSSetup { unsafe fn from_glib(value: ffi::GstWebRTCDTLSSetup) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Actpass, - 2 => Self::Active, - 3 => Self::Passive, + ffi::GST_WEBRTC_DTLS_SETUP_NONE => Self::None, + ffi::GST_WEBRTC_DTLS_SETUP_ACTPASS => Self::Actpass, + ffi::GST_WEBRTC_DTLS_SETUP_ACTIVE => Self::Active, + ffi::GST_WEBRTC_DTLS_SETUP_PASSIVE => Self::Passive, value => Self::__Unknown(value), } } @@ -220,11 +220,11 @@ impl FromGlib for WebRTCDTLSTransportState { unsafe fn from_glib(value: ffi::GstWebRTCDTLSTransportState) -> Self { skip_assert_initialized!(); match value { - 0 => Self::New, - 1 => Self::Closed, - 2 => Self::Failed, - 3 => Self::Connecting, - 4 => Self::Connected, + ffi::GST_WEBRTC_DTLS_TRANSPORT_STATE_NEW => Self::New, + ffi::GST_WEBRTC_DTLS_TRANSPORT_STATE_CLOSED => Self::Closed, + ffi::GST_WEBRTC_DTLS_TRANSPORT_STATE_FAILED => Self::Failed, + ffi::GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTING => Self::Connecting, + ffi::GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTED => Self::Connected, value => Self::__Unknown(value), } } @@ -308,11 +308,11 @@ impl FromGlib for WebRTCDataChannelState { unsafe fn from_glib(value: ffi::GstWebRTCDataChannelState) -> Self { skip_assert_initialized!(); match value { - 0 => Self::New, - 1 => Self::Connecting, - 2 => Self::Open, - 3 => Self::Closing, - 4 => Self::Closed, + ffi::GST_WEBRTC_DATA_CHANNEL_STATE_NEW => Self::New, + ffi::GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING => Self::Connecting, + ffi::GST_WEBRTC_DATA_CHANNEL_STATE_OPEN => Self::Open, + ffi::GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING => Self::Closing, + ffi::GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED => Self::Closed, value => Self::__Unknown(value), } } @@ -395,8 +395,8 @@ impl FromGlib for WebRTCFECType { unsafe fn from_glib(value: ffi::GstWebRTCFECType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::UlpRed, + ffi::GST_WEBRTC_FEC_TYPE_NONE => Self::None, + ffi::GST_WEBRTC_FEC_TYPE_ULP_RED => Self::UlpRed, value => Self::__Unknown(value), } } @@ -473,8 +473,8 @@ impl FromGlib for WebRTCICEComponent { unsafe fn from_glib(value: ffi::GstWebRTCICEComponent) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Rtp, - 1 => Self::Rtcp, + ffi::GST_WEBRTC_ICE_COMPONENT_RTP => Self::Rtp, + ffi::GST_WEBRTC_ICE_COMPONENT_RTCP => Self::Rtcp, value => Self::__Unknown(value), } } @@ -558,13 +558,13 @@ impl FromGlib for WebRTCICEConnectionState { unsafe fn from_glib(value: ffi::GstWebRTCICEConnectionState) -> Self { skip_assert_initialized!(); match value { - 0 => Self::New, - 1 => Self::Checking, - 2 => Self::Connected, - 3 => Self::Completed, - 4 => Self::Failed, - 5 => Self::Disconnected, - 6 => Self::Closed, + ffi::GST_WEBRTC_ICE_CONNECTION_STATE_NEW => Self::New, + ffi::GST_WEBRTC_ICE_CONNECTION_STATE_CHECKING => Self::Checking, + ffi::GST_WEBRTC_ICE_CONNECTION_STATE_CONNECTED => Self::Connected, + ffi::GST_WEBRTC_ICE_CONNECTION_STATE_COMPLETED => Self::Completed, + ffi::GST_WEBRTC_ICE_CONNECTION_STATE_FAILED => Self::Failed, + ffi::GST_WEBRTC_ICE_CONNECTION_STATE_DISCONNECTED => Self::Disconnected, + ffi::GST_WEBRTC_ICE_CONNECTION_STATE_CLOSED => Self::Closed, value => Self::__Unknown(value), } } @@ -636,9 +636,9 @@ impl FromGlib for WebRTCICEGatheringState { unsafe fn from_glib(value: ffi::GstWebRTCICEGatheringState) -> Self { skip_assert_initialized!(); match value { - 0 => Self::New, - 1 => Self::Gathering, - 2 => Self::Complete, + ffi::GST_WEBRTC_ICE_GATHERING_STATE_NEW => Self::New, + ffi::GST_WEBRTC_ICE_GATHERING_STATE_GATHERING => Self::Gathering, + ffi::GST_WEBRTC_ICE_GATHERING_STATE_COMPLETE => Self::Complete, value => Self::__Unknown(value), } } @@ -707,8 +707,8 @@ impl FromGlib for WebRTCICERole { unsafe fn from_glib(value: ffi::GstWebRTCICERole) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Controlled, - 1 => Self::Controlling, + ffi::GST_WEBRTC_ICE_ROLE_CONTROLLED => Self::Controlled, + ffi::GST_WEBRTC_ICE_ROLE_CONTROLLING => Self::Controlling, value => Self::__Unknown(value), } } @@ -783,8 +783,8 @@ impl FromGlib for WebRTCICETransportPolicy { unsafe fn from_glib(value: ffi::GstWebRTCICETransportPolicy) -> Self { skip_assert_initialized!(); match value { - 0 => Self::All, - 1 => Self::Relay, + ffi::GST_WEBRTC_ICE_TRANSPORT_POLICY_ALL => Self::All, + ffi::GST_WEBRTC_ICE_TRANSPORT_POLICY_RELAY => Self::Relay, value => Self::__Unknown(value), } } @@ -873,12 +873,12 @@ impl FromGlib for WebRTCPeerConnectionState { unsafe fn from_glib(value: ffi::GstWebRTCPeerConnectionState) -> Self { skip_assert_initialized!(); match value { - 0 => Self::New, - 1 => Self::Connecting, - 2 => Self::Connected, - 3 => Self::Disconnected, - 4 => Self::Failed, - 5 => Self::Closed, + ffi::GST_WEBRTC_PEER_CONNECTION_STATE_NEW => Self::New, + ffi::GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTING => Self::Connecting, + ffi::GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTED => Self::Connected, + ffi::GST_WEBRTC_PEER_CONNECTION_STATE_DISCONNECTED => Self::Disconnected, + ffi::GST_WEBRTC_PEER_CONNECTION_STATE_FAILED => Self::Failed, + ffi::GST_WEBRTC_PEER_CONNECTION_STATE_CLOSED => Self::Closed, value => Self::__Unknown(value), } } @@ -959,10 +959,10 @@ impl FromGlib for WebRTCPriorityType { unsafe fn from_glib(value: ffi::GstWebRTCPriorityType) -> Self { skip_assert_initialized!(); match value { - 1 => Self::VeryLow, - 2 => Self::Low, - 3 => Self::Medium, - 4 => Self::High, + ffi::GST_WEBRTC_PRIORITY_TYPE_VERY_LOW => Self::VeryLow, + ffi::GST_WEBRTC_PRIORITY_TYPE_LOW => Self::Low, + ffi::GST_WEBRTC_PRIORITY_TYPE_MEDIUM => Self::Medium, + ffi::GST_WEBRTC_PRIORITY_TYPE_HIGH => Self::High, value => Self::__Unknown(value), } } @@ -1048,11 +1048,11 @@ impl FromGlib for WebRTCRTPTransceiverDir unsafe fn from_glib(value: ffi::GstWebRTCRTPTransceiverDirection) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Inactive, - 2 => Self::Sendonly, - 3 => Self::Recvonly, - 4 => Self::Sendrecv, + ffi::GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_NONE => Self::None, + ffi::GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_INACTIVE => Self::Inactive, + ffi::GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY => Self::Sendonly, + ffi::GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY => Self::Recvonly, + ffi::GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDRECV => Self::Sendrecv, value => Self::__Unknown(value), } } @@ -1133,10 +1133,10 @@ impl FromGlib for WebRTCSCTPTransportState { unsafe fn from_glib(value: ffi::GstWebRTCSCTPTransportState) -> Self { skip_assert_initialized!(); match value { - 0 => Self::New, - 1 => Self::Connecting, - 2 => Self::Connected, - 3 => Self::Closed, + ffi::GST_WEBRTC_SCTP_TRANSPORT_STATE_NEW => Self::New, + ffi::GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTING => Self::Connecting, + ffi::GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTED => Self::Connected, + ffi::GST_WEBRTC_SCTP_TRANSPORT_STATE_CLOSED => Self::Closed, value => Self::__Unknown(value), } } @@ -1240,10 +1240,10 @@ impl FromGlib for WebRTCSDPType { unsafe fn from_glib(value: ffi::GstWebRTCSDPType) -> Self { skip_assert_initialized!(); match value { - 1 => Self::Offer, - 2 => Self::Pranswer, - 3 => Self::Answer, - 4 => Self::Rollback, + ffi::GST_WEBRTC_SDP_TYPE_OFFER => Self::Offer, + ffi::GST_WEBRTC_SDP_TYPE_PRANSWER => Self::Pranswer, + ffi::GST_WEBRTC_SDP_TYPE_ANSWER => Self::Answer, + ffi::GST_WEBRTC_SDP_TYPE_ROLLBACK => Self::Rollback, value => Self::__Unknown(value), } } @@ -1324,12 +1324,12 @@ impl FromGlib for WebRTCSignalingState { unsafe fn from_glib(value: ffi::GstWebRTCSignalingState) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Stable, - 1 => Self::Closed, - 2 => Self::HaveLocalOffer, - 3 => Self::HaveRemoteOffer, - 4 => Self::HaveLocalPranswer, - 5 => Self::HaveRemotePranswer, + ffi::GST_WEBRTC_SIGNALING_STATE_STABLE => Self::Stable, + ffi::GST_WEBRTC_SIGNALING_STATE_CLOSED => Self::Closed, + ffi::GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_OFFER => Self::HaveLocalOffer, + ffi::GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_OFFER => Self::HaveRemoteOffer, + ffi::GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_PRANSWER => Self::HaveLocalPranswer, + ffi::GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_PRANSWER => Self::HaveRemotePranswer, value => Self::__Unknown(value), } } @@ -1434,20 +1434,20 @@ impl FromGlib for WebRTCStatsType { unsafe fn from_glib(value: ffi::GstWebRTCStatsType) -> Self { skip_assert_initialized!(); match value { - 1 => Self::Codec, - 2 => Self::InboundRtp, - 3 => Self::OutboundRtp, - 4 => Self::RemoteInboundRtp, - 5 => Self::RemoteOutboundRtp, - 6 => Self::Csrc, - 7 => Self::PeerConnection, - 8 => Self::DataChannel, - 9 => Self::Stream, - 10 => Self::Transport, - 11 => Self::CandidatePair, - 12 => Self::LocalCandidate, - 13 => Self::RemoteCandidate, - 14 => Self::Certificate, + ffi::GST_WEBRTC_STATS_CODEC => Self::Codec, + ffi::GST_WEBRTC_STATS_INBOUND_RTP => Self::InboundRtp, + ffi::GST_WEBRTC_STATS_OUTBOUND_RTP => Self::OutboundRtp, + ffi::GST_WEBRTC_STATS_REMOTE_INBOUND_RTP => Self::RemoteInboundRtp, + ffi::GST_WEBRTC_STATS_REMOTE_OUTBOUND_RTP => Self::RemoteOutboundRtp, + ffi::GST_WEBRTC_STATS_CSRC => Self::Csrc, + ffi::GST_WEBRTC_STATS_PEER_CONNECTION => Self::PeerConnection, + ffi::GST_WEBRTC_STATS_DATA_CHANNEL => Self::DataChannel, + ffi::GST_WEBRTC_STATS_STREAM => Self::Stream, + ffi::GST_WEBRTC_STATS_TRANSPORT => Self::Transport, + ffi::GST_WEBRTC_STATS_CANDIDATE_PAIR => Self::CandidatePair, + ffi::GST_WEBRTC_STATS_LOCAL_CANDIDATE => Self::LocalCandidate, + ffi::GST_WEBRTC_STATS_REMOTE_CANDIDATE => Self::RemoteCandidate, + ffi::GST_WEBRTC_STATS_CERTIFICATE => Self::Certificate, value => Self::__Unknown(value), } } diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer-webrtc/src/auto/versions.txt +++ b/gstreamer-webrtc/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-webrtc/sys/build.rs b/gstreamer-webrtc/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer-webrtc/sys/build.rs +++ b/gstreamer-webrtc/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-webrtc/sys/src/lib.rs b/gstreamer-webrtc/sys/src/lib.rs index e643ae5a2..533d4fc59 100644 --- a/gstreamer-webrtc/sys/src/lib.rs +++ b/gstreamer-webrtc/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -150,13 +150,10 @@ pub struct GstWebRTCDTLSTransportClass { impl ::std::fmt::Debug for GstWebRTCDTLSTransportClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstWebRTCDTLSTransportClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .field("_padding", &self._padding) - .finish() + f.debug_struct(&format!("GstWebRTCDTLSTransportClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .field("_padding", &self._padding) + .finish() } } @@ -172,16 +169,13 @@ pub struct GstWebRTCDataChannelClass { impl ::std::fmt::Debug for GstWebRTCDataChannelClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstWebRTCDataChannelClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .field("send_data", &self.send_data) - .field("send_string", &self.send_string) - .field("close", &self.close) - .field("_padding", &self._padding) - .finish() + f.debug_struct(&format!("GstWebRTCDataChannelClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .field("send_data", &self.send_data) + .field("send_string", &self.send_string) + .field("close", &self.close) + .field("_padding", &self._padding) + .finish() } } @@ -195,14 +189,11 @@ pub struct GstWebRTCICETransportClass { impl ::std::fmt::Debug for GstWebRTCICETransportClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstWebRTCICETransportClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .field("gather_candidates", &self.gather_candidates) - .field("_padding", &self._padding) - .finish() + f.debug_struct(&format!("GstWebRTCICETransportClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .field("gather_candidates", &self.gather_candidates) + .field("_padding", &self._padding) + .finish() } } @@ -215,13 +206,10 @@ pub struct GstWebRTCRTPReceiverClass { impl ::std::fmt::Debug for GstWebRTCRTPReceiverClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstWebRTCRTPReceiverClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .field("_padding", &self._padding) - .finish() + f.debug_struct(&format!("GstWebRTCRTPReceiverClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .field("_padding", &self._padding) + .finish() } } @@ -234,7 +222,7 @@ pub struct GstWebRTCRTPSenderClass { impl ::std::fmt::Debug for GstWebRTCRTPSenderClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstWebRTCRTPSenderClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstWebRTCRTPSenderClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("_padding", &self._padding) .finish() @@ -250,13 +238,10 @@ pub struct GstWebRTCRTPTransceiverClass { impl ::std::fmt::Debug for GstWebRTCRTPTransceiverClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstWebRTCRTPTransceiverClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .field("_padding", &self._padding) - .finish() + f.debug_struct(&format!("GstWebRTCRTPTransceiverClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .field("_padding", &self._padding) + .finish() } } @@ -269,13 +254,10 @@ pub struct GstWebRTCSessionDescription { impl ::std::fmt::Debug for GstWebRTCSessionDescription { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstWebRTCSessionDescription @ {:?}", - self as *const _ - )) - .field("type_", &self.type_) - .field("sdp", &self.sdp) - .finish() + f.debug_struct(&format!("GstWebRTCSessionDescription @ {:p}", self)) + .field("type_", &self.type_) + .field("sdp", &self.sdp) + .finish() } } @@ -296,7 +278,7 @@ pub struct GstWebRTCDTLSTransport { impl ::std::fmt::Debug for GstWebRTCDTLSTransport { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstWebRTCDTLSTransport @ {:?}", self as *const _)) + f.debug_struct(&format!("GstWebRTCDTLSTransport @ {:p}", self)) .field("parent", &self.parent) .field("transport", &self.transport) .field("state", &self.state) @@ -331,7 +313,7 @@ pub struct GstWebRTCDataChannel { impl ::std::fmt::Debug for GstWebRTCDataChannel { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstWebRTCDataChannel @ {:?}", self as *const _)) + f.debug_struct(&format!("GstWebRTCDataChannel @ {:p}", self)) .field("parent", &self.parent) .field("lock", &self.lock) .field("label", &self.label) @@ -368,7 +350,7 @@ pub struct GstWebRTCICETransport { impl ::std::fmt::Debug for GstWebRTCICETransport { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstWebRTCICETransport @ {:?}", self as *const _)) + f.debug_struct(&format!("GstWebRTCICETransport @ {:p}", self)) .field("parent", &self.parent) .field("role", &self.role) .field("component", &self.component) @@ -392,7 +374,7 @@ pub struct GstWebRTCRTPReceiver { impl ::std::fmt::Debug for GstWebRTCRTPReceiver { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstWebRTCRTPReceiver @ {:?}", self as *const _)) + f.debug_struct(&format!("GstWebRTCRTPReceiver @ {:p}", self)) .field("parent", &self.parent) .field("transport", &self.transport) .field("rtcp_transport", &self.rtcp_transport) @@ -413,7 +395,7 @@ pub struct GstWebRTCRTPSender { impl ::std::fmt::Debug for GstWebRTCRTPSender { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstWebRTCRTPSender @ {:?}", self as *const _)) + f.debug_struct(&format!("GstWebRTCRTPSender @ {:p}", self)) .field("parent", &self.parent) .field("transport", &self.transport) .field("rtcp_transport", &self.rtcp_transport) @@ -440,7 +422,7 @@ pub struct GstWebRTCRTPTransceiver { impl ::std::fmt::Debug for GstWebRTCRTPTransceiver { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstWebRTCRTPTransceiver @ {:?}", self as *const _)) + f.debug_struct(&format!("GstWebRTCRTPTransceiver @ {:p}", self)) .field("parent", &self.parent) .field("mline", &self.mline) .field("mid", &self.mid) diff --git a/gstreamer-webrtc/sys/tests/abi.rs b/gstreamer-webrtc/sys/tests/abi.rs index 2b207301b..dd31ad2c3 100644 --- a/gstreamer-webrtc/sys/tests/abi.rs +++ b/gstreamer-webrtc/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-webrtc/sys/tests/constant.c b/gstreamer-webrtc/sys/tests/constant.c index 96d80c77c..2bc2a9fc3 100644 --- a/gstreamer-webrtc/sys/tests/constant.c +++ b/gstreamer-webrtc/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-webrtc/sys/tests/layout.c b/gstreamer-webrtc/sys/tests/layout.c index 6b249287f..eea114ed9 100644 --- a/gstreamer-webrtc/sys/tests/layout.c +++ b/gstreamer-webrtc/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index d4b53ff7e..3264056f6 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -308,7 +308,7 @@ impl> ElementExt for O { transition: StateChange, ) -> Result { unsafe { - StateChangeSuccess::try_from_glib(ffi::gst_element_change_state( + try_from_glib(ffi::gst_element_change_state( self.as_ref().to_glib_none().0, transition.into_glib(), )) @@ -320,7 +320,7 @@ impl> ElementExt for O { ret: impl Into, ) -> Result { unsafe { - StateChangeSuccess::try_from_glib(ffi::gst_element_continue_state( + try_from_glib(ffi::gst_element_continue_state( self.as_ref().to_glib_none().0, ret.into().into_glib(), )) @@ -491,7 +491,7 @@ impl> ElementExt for O { unsafe { let mut state = mem::MaybeUninit::uninit(); let mut pending = mem::MaybeUninit::uninit(); - let ret = StateChangeSuccess::try_from_glib(ffi::gst_element_get_state( + let ret = try_from_glib(ffi::gst_element_get_state( self.as_ref().to_glib_none().0, state.as_mut_ptr(), pending.as_mut_ptr(), @@ -740,7 +740,7 @@ impl> ElementExt for O { fn set_state(&self, state: State) -> Result { unsafe { - StateChangeSuccess::try_from_glib(ffi::gst_element_set_state( + try_from_glib(ffi::gst_element_set_state( self.as_ref().to_glib_none().0, state.into_glib(), )) diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index 90919b293..4941a065a 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -50,10 +50,10 @@ impl FromGlib for BufferingMode { unsafe fn from_glib(value: ffi::GstBufferingMode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Stream, - 1 => Self::Download, - 2 => Self::Timeshift, - 3 => Self::Live, + ffi::GST_BUFFERING_STREAM => Self::Stream, + ffi::GST_BUFFERING_DOWNLOAD => Self::Download, + ffi::GST_BUFFERING_TIMESHIFT => Self::Timeshift, + ffi::GST_BUFFERING_LIVE => Self::Live, value => Self::__Unknown(value), } } @@ -125,9 +125,9 @@ impl FromGlib for BusSyncReply { unsafe fn from_glib(value: ffi::GstBusSyncReply) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Drop, - 1 => Self::Pass, - 2 => Self::Async, + ffi::GST_BUS_DROP => Self::Drop, + ffi::GST_BUS_PASS => Self::Pass, + ffi::GST_BUS_ASYNC => Self::Async, value => Self::__Unknown(value), } } @@ -196,8 +196,8 @@ impl FromGlib for CapsIntersectMode { unsafe fn from_glib(value: ffi::GstCapsIntersectMode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::ZigZag, - 1 => Self::First, + ffi::GST_CAPS_INTERSECT_ZIG_ZAG => Self::ZigZag, + ffi::GST_CAPS_INTERSECT_FIRST => Self::First, value => Self::__Unknown(value), } } @@ -266,8 +266,8 @@ impl FromGlib for ClockEntryType { unsafe fn from_glib(value: ffi::GstClockEntryType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Single, - 1 => Self::Periodic, + ffi::GST_CLOCK_ENTRY_SINGLE => Self::Single, + ffi::GST_CLOCK_ENTRY_PERIODIC => Self::Periodic, value => Self::__Unknown(value), } } @@ -355,14 +355,14 @@ impl FromGlib for ClockReturn { unsafe fn from_glib(value: ffi::GstClockReturn) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Ok, - 1 => Self::Early, - 2 => Self::Unscheduled, - 3 => Self::Busy, - 4 => Self::Badtime, - 5 => Self::Error, - 6 => Self::Unsupported, - 7 => Self::Done, + ffi::GST_CLOCK_OK => Self::Ok, + ffi::GST_CLOCK_EARLY => Self::Early, + ffi::GST_CLOCK_UNSCHEDULED => Self::Unscheduled, + ffi::GST_CLOCK_BUSY => Self::Busy, + ffi::GST_CLOCK_BADTIME => Self::Badtime, + ffi::GST_CLOCK_ERROR => Self::Error, + ffi::GST_CLOCK_UNSUPPORTED => Self::Unsupported, + ffi::GST_CLOCK_DONE => Self::Done, value => Self::__Unknown(value), } } @@ -440,11 +440,11 @@ impl FromGlib for ClockType { unsafe fn from_glib(value: ffi::GstClockType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Realtime, - 1 => Self::Monotonic, - 2 => Self::Other, + ffi::GST_CLOCK_TYPE_REALTIME => Self::Realtime, + ffi::GST_CLOCK_TYPE_MONOTONIC => Self::Monotonic, + ffi::GST_CLOCK_TYPE_OTHER => Self::Other, #[cfg(any(feature = "v1_18", feature = "dox"))] - 3 => Self::Tai, + ffi::GST_CLOCK_TYPE_TAI => Self::Tai, value => Self::__Unknown(value), } } @@ -552,21 +552,21 @@ impl FromGlib for CoreError { unsafe fn from_glib(value: ffi::GstCoreError) -> Self { skip_assert_initialized!(); match value { - 1 => Self::Failed, - 2 => Self::TooLazy, - 3 => Self::NotImplemented, - 4 => Self::StateChange, - 5 => Self::Pad, - 6 => Self::Thread, - 7 => Self::Negotiation, - 8 => Self::Event, - 9 => Self::Seek, - 10 => Self::Caps, - 11 => Self::Tag, - 12 => Self::MissingPlugin, - 13 => Self::Clock, - 14 => Self::Disabled, - 15 => Self::NumErrors, + ffi::GST_CORE_ERROR_FAILED => Self::Failed, + ffi::GST_CORE_ERROR_TOO_LAZY => Self::TooLazy, + ffi::GST_CORE_ERROR_NOT_IMPLEMENTED => Self::NotImplemented, + ffi::GST_CORE_ERROR_STATE_CHANGE => Self::StateChange, + ffi::GST_CORE_ERROR_PAD => Self::Pad, + ffi::GST_CORE_ERROR_THREAD => Self::Thread, + ffi::GST_CORE_ERROR_NEGOTIATION => Self::Negotiation, + ffi::GST_CORE_ERROR_EVENT => Self::Event, + ffi::GST_CORE_ERROR_SEEK => Self::Seek, + ffi::GST_CORE_ERROR_CAPS => Self::Caps, + ffi::GST_CORE_ERROR_TAG => Self::Tag, + ffi::GST_CORE_ERROR_MISSING_PLUGIN => Self::MissingPlugin, + ffi::GST_CORE_ERROR_CLOCK => Self::Clock, + ffi::GST_CORE_ERROR_DISABLED => Self::Disabled, + ffi::GST_CORE_ERROR_NUM_ERRORS => Self::NumErrors, value => Self::__Unknown(value), } } @@ -586,21 +586,21 @@ impl ErrorDomain for CoreError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 1 => Some(Self::Failed), - 2 => Some(Self::TooLazy), - 3 => Some(Self::NotImplemented), - 4 => Some(Self::StateChange), - 5 => Some(Self::Pad), - 6 => Some(Self::Thread), - 7 => Some(Self::Negotiation), - 8 => Some(Self::Event), - 9 => Some(Self::Seek), - 10 => Some(Self::Caps), - 11 => Some(Self::Tag), - 12 => Some(Self::MissingPlugin), - 13 => Some(Self::Clock), - 14 => Some(Self::Disabled), - 15 => Some(Self::NumErrors), + ffi::GST_CORE_ERROR_FAILED => Some(Self::Failed), + ffi::GST_CORE_ERROR_TOO_LAZY => Some(Self::TooLazy), + ffi::GST_CORE_ERROR_NOT_IMPLEMENTED => Some(Self::NotImplemented), + ffi::GST_CORE_ERROR_STATE_CHANGE => Some(Self::StateChange), + ffi::GST_CORE_ERROR_PAD => Some(Self::Pad), + ffi::GST_CORE_ERROR_THREAD => Some(Self::Thread), + ffi::GST_CORE_ERROR_NEGOTIATION => Some(Self::Negotiation), + ffi::GST_CORE_ERROR_EVENT => Some(Self::Event), + ffi::GST_CORE_ERROR_SEEK => Some(Self::Seek), + ffi::GST_CORE_ERROR_CAPS => Some(Self::Caps), + ffi::GST_CORE_ERROR_TAG => Some(Self::Tag), + ffi::GST_CORE_ERROR_MISSING_PLUGIN => Some(Self::MissingPlugin), + ffi::GST_CORE_ERROR_CLOCK => Some(Self::Clock), + ffi::GST_CORE_ERROR_DISABLED => Some(Self::Disabled), + ffi::GST_CORE_ERROR_NUM_ERRORS => Some(Self::NumErrors), _ => Some(Self::Failed), } } @@ -714,16 +714,16 @@ impl FromGlib for DebugLevel { unsafe fn from_glib(value: ffi::GstDebugLevel) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Error, - 2 => Self::Warning, - 3 => Self::Fixme, - 4 => Self::Info, - 5 => Self::Debug, - 6 => Self::Log, - 7 => Self::Trace, - 9 => Self::Memdump, - 10 => Self::Count, + ffi::GST_LEVEL_NONE => Self::None, + ffi::GST_LEVEL_ERROR => Self::Error, + ffi::GST_LEVEL_WARNING => Self::Warning, + ffi::GST_LEVEL_FIXME => Self::Fixme, + ffi::GST_LEVEL_INFO => Self::Info, + ffi::GST_LEVEL_DEBUG => Self::Debug, + ffi::GST_LEVEL_LOG => Self::Log, + ffi::GST_LEVEL_TRACE => Self::Trace, + ffi::GST_LEVEL_MEMDUMP => Self::Memdump, + ffi::GST_LEVEL_COUNT => Self::Count, value => Self::__Unknown(value), } } @@ -928,42 +928,42 @@ impl FromGlib for EventType { unsafe fn from_glib(value: ffi::GstEventType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Unknown, - 2563 => Self::FlushStart, - 5127 => Self::FlushStop, - 10254 => Self::StreamStart, - 12814 => Self::Caps, - 17934 => Self::Segment, - 19230 => Self::StreamCollection, - 20510 => Self::Tag, - 23054 => Self::Buffersize, - 25630 => Self::SinkMessage, + ffi::GST_EVENT_UNKNOWN => Self::Unknown, + ffi::GST_EVENT_FLUSH_START => Self::FlushStart, + ffi::GST_EVENT_FLUSH_STOP => Self::FlushStop, + ffi::GST_EVENT_STREAM_START => Self::StreamStart, + ffi::GST_EVENT_CAPS => Self::Caps, + ffi::GST_EVENT_SEGMENT => Self::Segment, + ffi::GST_EVENT_STREAM_COLLECTION => Self::StreamCollection, + ffi::GST_EVENT_TAG => Self::Tag, + ffi::GST_EVENT_BUFFERSIZE => Self::Buffersize, + ffi::GST_EVENT_SINK_MESSAGE => Self::SinkMessage, #[cfg(any(feature = "v1_10", feature = "dox"))] - 26894 => Self::StreamGroupDone, - 28174 => Self::Eos, - 30750 => Self::Toc, - 33310 => Self::Protection, - 38406 => Self::SegmentDone, - 40966 => Self::Gap, + ffi::GST_EVENT_STREAM_GROUP_DONE => Self::StreamGroupDone, + ffi::GST_EVENT_EOS => Self::Eos, + ffi::GST_EVENT_TOC => Self::Toc, + ffi::GST_EVENT_PROTECTION => Self::Protection, + ffi::GST_EVENT_SEGMENT_DONE => Self::SegmentDone, + ffi::GST_EVENT_GAP => Self::Gap, #[cfg(any(feature = "v1_18", feature = "dox"))] - 46090 => Self::InstantRateChange, - 48641 => Self::Qos, - 51201 => Self::Seek, - 53761 => Self::Navigation, - 56321 => Self::Latency, - 58881 => Self::Step, - 61441 => Self::Reconfigure, - 64001 => Self::TocSelect, + ffi::GST_EVENT_INSTANT_RATE_CHANGE => Self::InstantRateChange, + ffi::GST_EVENT_QOS => Self::Qos, + ffi::GST_EVENT_SEEK => Self::Seek, + ffi::GST_EVENT_NAVIGATION => Self::Navigation, + ffi::GST_EVENT_LATENCY => Self::Latency, + ffi::GST_EVENT_STEP => Self::Step, + ffi::GST_EVENT_RECONFIGURE => Self::Reconfigure, + ffi::GST_EVENT_TOC_SELECT => Self::TocSelect, #[cfg(any(feature = "v1_10", feature = "dox"))] - 66561 => Self::SelectStreams, + ffi::GST_EVENT_SELECT_STREAMS => Self::SelectStreams, #[cfg(any(feature = "v1_18", feature = "dox"))] - 66817 => Self::InstantRateSyncTime, - 69121 => Self::CustomUpstream, - 71686 => Self::CustomDownstream, - 74242 => Self::CustomDownstreamOob, - 76830 => Self::CustomDownstreamSticky, - 79367 => Self::CustomBoth, - 81923 => Self::CustomBothOob, + ffi::GST_EVENT_INSTANT_RATE_SYNC_TIME => Self::InstantRateSyncTime, + ffi::GST_EVENT_CUSTOM_UPSTREAM => Self::CustomUpstream, + ffi::GST_EVENT_CUSTOM_DOWNSTREAM => Self::CustomDownstream, + ffi::GST_EVENT_CUSTOM_DOWNSTREAM_OOB => Self::CustomDownstreamOob, + ffi::GST_EVENT_CUSTOM_DOWNSTREAM_STICKY => Self::CustomDownstreamSticky, + ffi::GST_EVENT_CUSTOM_BOTH => Self::CustomBoth, + ffi::GST_EVENT_CUSTOM_BOTH_OOB => Self::CustomBothOob, value => Self::__Unknown(value), } } @@ -1066,19 +1066,19 @@ impl FromGlib for FlowReturn { unsafe fn from_glib(value: ffi::GstFlowReturn) -> Self { skip_assert_initialized!(); match value { - 102 => Self::CustomSuccess2, - 101 => Self::CustomSuccess1, - 100 => Self::CustomSuccess, - 0 => Self::Ok, - -1 => Self::NotLinked, - -2 => Self::Flushing, - -3 => Self::Eos, - -4 => Self::NotNegotiated, - -5 => Self::Error, - -6 => Self::NotSupported, - -100 => Self::CustomError, - -101 => Self::CustomError1, - -102 => Self::CustomError2, + ffi::GST_FLOW_CUSTOM_SUCCESS_2 => Self::CustomSuccess2, + ffi::GST_FLOW_CUSTOM_SUCCESS_1 => Self::CustomSuccess1, + ffi::GST_FLOW_CUSTOM_SUCCESS => Self::CustomSuccess, + ffi::GST_FLOW_OK => Self::Ok, + ffi::GST_FLOW_NOT_LINKED => Self::NotLinked, + ffi::GST_FLOW_FLUSHING => Self::Flushing, + ffi::GST_FLOW_EOS => Self::Eos, + ffi::GST_FLOW_NOT_NEGOTIATED => Self::NotNegotiated, + ffi::GST_FLOW_ERROR => Self::Error, + ffi::GST_FLOW_NOT_SUPPORTED => Self::NotSupported, + ffi::GST_FLOW_CUSTOM_ERROR => Self::CustomError, + ffi::GST_FLOW_CUSTOM_ERROR_1 => Self::CustomError1, + ffi::GST_FLOW_CUSTOM_ERROR_2 => Self::CustomError2, value => Self::__Unknown(value), } } @@ -1193,12 +1193,12 @@ impl FromGlib for Format { unsafe fn from_glib(value: ffi::GstFormat) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Undefined, - 1 => Self::Default, - 2 => Self::Bytes, - 3 => Self::Time, - 4 => Self::Buffers, - 5 => Self::Percent, + ffi::GST_FORMAT_UNDEFINED => Self::Undefined, + ffi::GST_FORMAT_DEFAULT => Self::Default, + ffi::GST_FORMAT_BYTES => Self::Bytes, + ffi::GST_FORMAT_TIME => Self::Time, + ffi::GST_FORMAT_BUFFERS => Self::Buffers, + ffi::GST_FORMAT_PERCENT => Self::Percent, value => Self::__Unknown(value), } } @@ -1282,13 +1282,13 @@ impl FromGlib for LibraryError { unsafe fn from_glib(value: ffi::GstLibraryError) -> Self { skip_assert_initialized!(); match value { - 1 => Self::Failed, - 2 => Self::TooLazy, - 3 => Self::Init, - 4 => Self::Shutdown, - 5 => Self::Settings, - 6 => Self::Encode, - 7 => Self::NumErrors, + ffi::GST_LIBRARY_ERROR_FAILED => Self::Failed, + ffi::GST_LIBRARY_ERROR_TOO_LAZY => Self::TooLazy, + ffi::GST_LIBRARY_ERROR_INIT => Self::Init, + ffi::GST_LIBRARY_ERROR_SHUTDOWN => Self::Shutdown, + ffi::GST_LIBRARY_ERROR_SETTINGS => Self::Settings, + ffi::GST_LIBRARY_ERROR_ENCODE => Self::Encode, + ffi::GST_LIBRARY_ERROR_NUM_ERRORS => Self::NumErrors, value => Self::__Unknown(value), } } @@ -1308,13 +1308,13 @@ impl ErrorDomain for LibraryError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 1 => Some(Self::Failed), - 2 => Some(Self::TooLazy), - 3 => Some(Self::Init), - 4 => Some(Self::Shutdown), - 5 => Some(Self::Settings), - 6 => Some(Self::Encode), - 7 => Some(Self::NumErrors), + ffi::GST_LIBRARY_ERROR_FAILED => Some(Self::Failed), + ffi::GST_LIBRARY_ERROR_TOO_LAZY => Some(Self::TooLazy), + ffi::GST_LIBRARY_ERROR_INIT => Some(Self::Init), + ffi::GST_LIBRARY_ERROR_SHUTDOWN => Some(Self::Shutdown), + ffi::GST_LIBRARY_ERROR_SETTINGS => Some(Self::Settings), + ffi::GST_LIBRARY_ERROR_ENCODE => Some(Self::Encode), + ffi::GST_LIBRARY_ERROR_NUM_ERRORS => Some(Self::NumErrors), _ => Some(Self::Failed), } } @@ -1386,9 +1386,9 @@ impl FromGlib for PadDirection { unsafe fn from_glib(value: ffi::GstPadDirection) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Unknown, - 1 => Self::Src, - 2 => Self::Sink, + ffi::GST_PAD_UNKNOWN => Self::Unknown, + ffi::GST_PAD_SRC => Self::Src, + ffi::GST_PAD_SINK => Self::Sink, value => Self::__Unknown(value), } } @@ -1473,13 +1473,13 @@ impl FromGlib for PadLinkReturn { unsafe fn from_glib(value: ffi::GstPadLinkReturn) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Ok, - -1 => Self::WrongHierarchy, - -2 => Self::WasLinked, - -3 => Self::WrongDirection, - -4 => Self::Noformat, - -5 => Self::Nosched, - -6 => Self::Refused, + ffi::GST_PAD_LINK_OK => Self::Ok, + ffi::GST_PAD_LINK_WRONG_HIERARCHY => Self::WrongHierarchy, + ffi::GST_PAD_LINK_WAS_LINKED => Self::WasLinked, + ffi::GST_PAD_LINK_WRONG_DIRECTION => Self::WrongDirection, + ffi::GST_PAD_LINK_NOFORMAT => Self::Noformat, + ffi::GST_PAD_LINK_NOSCHED => Self::Nosched, + ffi::GST_PAD_LINK_REFUSED => Self::Refused, value => Self::__Unknown(value), } } @@ -1572,9 +1572,9 @@ impl FromGlib for PadMode { unsafe fn from_glib(value: ffi::GstPadMode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Push, - 2 => Self::Pull, + ffi::GST_PAD_MODE_NONE => Self::None, + ffi::GST_PAD_MODE_PUSH => Self::Push, + ffi::GST_PAD_MODE_PULL => Self::Pull, value => Self::__Unknown(value), } } @@ -1646,9 +1646,9 @@ impl FromGlib for PadPresence { unsafe fn from_glib(value: ffi::GstPadPresence) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Always, - 1 => Self::Sometimes, - 2 => Self::Request, + ffi::GST_PAD_ALWAYS => Self::Always, + ffi::GST_PAD_SOMETIMES => Self::Sometimes, + ffi::GST_PAD_REQUEST => Self::Request, value => Self::__Unknown(value), } } @@ -1726,11 +1726,11 @@ impl FromGlib for PadProbeReturn { unsafe fn from_glib(value: ffi::GstPadProbeReturn) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Drop, - 1 => Self::Ok, - 2 => Self::Remove, - 3 => Self::Pass, - 4 => Self::Handled, + ffi::GST_PAD_PROBE_DROP => Self::Drop, + ffi::GST_PAD_PROBE_OK => Self::Ok, + ffi::GST_PAD_PROBE_REMOVE => Self::Remove, + ffi::GST_PAD_PROBE_PASS => Self::Pass, + ffi::GST_PAD_PROBE_HANDLED => Self::Handled, value => Self::__Unknown(value), } } @@ -1817,14 +1817,14 @@ impl FromGlib for ParseError { unsafe fn from_glib(value: ffi::GstParseError) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Syntax, - 1 => Self::NoSuchElement, - 2 => Self::NoSuchProperty, - 3 => Self::Link, - 4 => Self::CouldNotSetProperty, - 5 => Self::EmptyBin, - 6 => Self::Empty, - 7 => Self::DelayedLink, + ffi::GST_PARSE_ERROR_SYNTAX => Self::Syntax, + ffi::GST_PARSE_ERROR_NO_SUCH_ELEMENT => Self::NoSuchElement, + ffi::GST_PARSE_ERROR_NO_SUCH_PROPERTY => Self::NoSuchProperty, + ffi::GST_PARSE_ERROR_LINK => Self::Link, + ffi::GST_PARSE_ERROR_COULD_NOT_SET_PROPERTY => Self::CouldNotSetProperty, + ffi::GST_PARSE_ERROR_EMPTY_BIN => Self::EmptyBin, + ffi::GST_PARSE_ERROR_EMPTY => Self::Empty, + ffi::GST_PARSE_ERROR_DELAYED_LINK => Self::DelayedLink, value => Self::__Unknown(value), } } @@ -1844,14 +1844,14 @@ impl ErrorDomain for ParseError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 0 => Some(Self::Syntax), - 1 => Some(Self::NoSuchElement), - 2 => Some(Self::NoSuchProperty), - 3 => Some(Self::Link), - 4 => Some(Self::CouldNotSetProperty), - 5 => Some(Self::EmptyBin), - 6 => Some(Self::Empty), - 7 => Some(Self::DelayedLink), + ffi::GST_PARSE_ERROR_SYNTAX => Some(Self::Syntax), + ffi::GST_PARSE_ERROR_NO_SUCH_ELEMENT => Some(Self::NoSuchElement), + ffi::GST_PARSE_ERROR_NO_SUCH_PROPERTY => Some(Self::NoSuchProperty), + ffi::GST_PARSE_ERROR_LINK => Some(Self::Link), + ffi::GST_PARSE_ERROR_COULD_NOT_SET_PROPERTY => Some(Self::CouldNotSetProperty), + ffi::GST_PARSE_ERROR_EMPTY_BIN => Some(Self::EmptyBin), + ffi::GST_PARSE_ERROR_EMPTY => Some(Self::Empty), + ffi::GST_PARSE_ERROR_DELAYED_LINK => Some(Self::DelayedLink), value => Some(Self::__Unknown(value)), } } @@ -1923,9 +1923,9 @@ impl FromGlib for PluginError { unsafe fn from_glib(value: ffi::GstPluginError) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Module, - 1 => Self::Dependencies, - 2 => Self::NameMismatch, + ffi::GST_PLUGIN_ERROR_MODULE => Self::Module, + ffi::GST_PLUGIN_ERROR_DEPENDENCIES => Self::Dependencies, + ffi::GST_PLUGIN_ERROR_NAME_MISMATCH => Self::NameMismatch, value => Self::__Unknown(value), } } @@ -1945,9 +1945,9 @@ impl ErrorDomain for PluginError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 0 => Some(Self::Module), - 1 => Some(Self::Dependencies), - 2 => Some(Self::NameMismatch), + ffi::GST_PLUGIN_ERROR_MODULE => Some(Self::Module), + ffi::GST_PLUGIN_ERROR_DEPENDENCIES => Some(Self::Dependencies), + ffi::GST_PLUGIN_ERROR_NAME_MISMATCH => Some(Self::NameMismatch), value => Some(Self::__Unknown(value)), } } @@ -2025,11 +2025,11 @@ impl FromGlib for ProgressType { unsafe fn from_glib(value: ffi::GstProgressType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Start, - 1 => Self::Continue, - 2 => Self::Complete, - 3 => Self::Canceled, - 4 => Self::Error, + ffi::GST_PROGRESS_TYPE_START => Self::Start, + ffi::GST_PROGRESS_TYPE_CONTINUE => Self::Continue, + ffi::GST_PROGRESS_TYPE_COMPLETE => Self::Complete, + ffi::GST_PROGRESS_TYPE_CANCELED => Self::Canceled, + ffi::GST_PROGRESS_TYPE_ERROR => Self::Error, value => Self::__Unknown(value), } } @@ -2110,10 +2110,10 @@ impl FromGlib for PromiseResult { unsafe fn from_glib(value: ffi::GstPromiseResult) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Pending, - 1 => Self::Interrupted, - 2 => Self::Replied, - 3 => Self::Expired, + ffi::GST_PROMISE_RESULT_PENDING => Self::Pending, + ffi::GST_PROMISE_RESULT_INTERRUPTED => Self::Interrupted, + ffi::GST_PROMISE_RESULT_REPLIED => Self::Replied, + ffi::GST_PROMISE_RESULT_EXPIRED => Self::Expired, value => Self::__Unknown(value), } } @@ -2193,9 +2193,9 @@ impl FromGlib for QOSType { unsafe fn from_glib(value: ffi::GstQOSType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Overflow, - 1 => Self::Underflow, - 2 => Self::Throttle, + ffi::GST_QOS_TYPE_OVERFLOW => Self::Overflow, + ffi::GST_QOS_TYPE_UNDERFLOW => Self::Underflow, + ffi::GST_QOS_TYPE_THROTTLE => Self::Throttle, value => Self::__Unknown(value), } } @@ -2270,10 +2270,10 @@ impl FromGlib for Rank { unsafe fn from_glib(value: ffi::GstRank) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 64 => Self::Marginal, - 128 => Self::Secondary, - 256 => Self::Primary, + ffi::GST_RANK_NONE => Self::None, + ffi::GST_RANK_MARGINAL => Self::Marginal, + ffi::GST_RANK_SECONDARY => Self::Secondary, + ffi::GST_RANK_PRIMARY => Self::Primary, value => Self::__Unknown(value), } } @@ -2384,22 +2384,22 @@ impl FromGlib for ResourceError { unsafe fn from_glib(value: ffi::GstResourceError) -> Self { skip_assert_initialized!(); match value { - 1 => Self::Failed, - 2 => Self::TooLazy, - 3 => Self::NotFound, - 4 => Self::Busy, - 5 => Self::OpenRead, - 6 => Self::OpenWrite, - 7 => Self::OpenReadWrite, - 8 => Self::Close, - 9 => Self::Read, - 10 => Self::Write, - 11 => Self::Seek, - 12 => Self::Sync, - 13 => Self::Settings, - 14 => Self::NoSpaceLeft, - 15 => Self::NotAuthorized, - 16 => Self::NumErrors, + ffi::GST_RESOURCE_ERROR_FAILED => Self::Failed, + ffi::GST_RESOURCE_ERROR_TOO_LAZY => Self::TooLazy, + ffi::GST_RESOURCE_ERROR_NOT_FOUND => Self::NotFound, + ffi::GST_RESOURCE_ERROR_BUSY => Self::Busy, + ffi::GST_RESOURCE_ERROR_OPEN_READ => Self::OpenRead, + ffi::GST_RESOURCE_ERROR_OPEN_WRITE => Self::OpenWrite, + ffi::GST_RESOURCE_ERROR_OPEN_READ_WRITE => Self::OpenReadWrite, + ffi::GST_RESOURCE_ERROR_CLOSE => Self::Close, + ffi::GST_RESOURCE_ERROR_READ => Self::Read, + ffi::GST_RESOURCE_ERROR_WRITE => Self::Write, + ffi::GST_RESOURCE_ERROR_SEEK => Self::Seek, + ffi::GST_RESOURCE_ERROR_SYNC => Self::Sync, + ffi::GST_RESOURCE_ERROR_SETTINGS => Self::Settings, + ffi::GST_RESOURCE_ERROR_NO_SPACE_LEFT => Self::NoSpaceLeft, + ffi::GST_RESOURCE_ERROR_NOT_AUTHORIZED => Self::NotAuthorized, + ffi::GST_RESOURCE_ERROR_NUM_ERRORS => Self::NumErrors, value => Self::__Unknown(value), } } @@ -2419,22 +2419,22 @@ impl ErrorDomain for ResourceError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 1 => Some(Self::Failed), - 2 => Some(Self::TooLazy), - 3 => Some(Self::NotFound), - 4 => Some(Self::Busy), - 5 => Some(Self::OpenRead), - 6 => Some(Self::OpenWrite), - 7 => Some(Self::OpenReadWrite), - 8 => Some(Self::Close), - 9 => Some(Self::Read), - 10 => Some(Self::Write), - 11 => Some(Self::Seek), - 12 => Some(Self::Sync), - 13 => Some(Self::Settings), - 14 => Some(Self::NoSpaceLeft), - 15 => Some(Self::NotAuthorized), - 16 => Some(Self::NumErrors), + ffi::GST_RESOURCE_ERROR_FAILED => Some(Self::Failed), + ffi::GST_RESOURCE_ERROR_TOO_LAZY => Some(Self::TooLazy), + ffi::GST_RESOURCE_ERROR_NOT_FOUND => Some(Self::NotFound), + ffi::GST_RESOURCE_ERROR_BUSY => Some(Self::Busy), + ffi::GST_RESOURCE_ERROR_OPEN_READ => Some(Self::OpenRead), + ffi::GST_RESOURCE_ERROR_OPEN_WRITE => Some(Self::OpenWrite), + ffi::GST_RESOURCE_ERROR_OPEN_READ_WRITE => Some(Self::OpenReadWrite), + ffi::GST_RESOURCE_ERROR_CLOSE => Some(Self::Close), + ffi::GST_RESOURCE_ERROR_READ => Some(Self::Read), + ffi::GST_RESOURCE_ERROR_WRITE => Some(Self::Write), + ffi::GST_RESOURCE_ERROR_SEEK => Some(Self::Seek), + ffi::GST_RESOURCE_ERROR_SYNC => Some(Self::Sync), + ffi::GST_RESOURCE_ERROR_SETTINGS => Some(Self::Settings), + ffi::GST_RESOURCE_ERROR_NO_SPACE_LEFT => Some(Self::NoSpaceLeft), + ffi::GST_RESOURCE_ERROR_NOT_AUTHORIZED => Some(Self::NotAuthorized), + ffi::GST_RESOURCE_ERROR_NUM_ERRORS => Some(Self::NumErrors), _ => Some(Self::Failed), } } @@ -2506,9 +2506,9 @@ impl FromGlib for SeekType { unsafe fn from_glib(value: ffi::GstSeekType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Set, - 2 => Self::End, + ffi::GST_SEEK_TYPE_NONE => Self::None, + ffi::GST_SEEK_TYPE_SET => Self::Set, + ffi::GST_SEEK_TYPE_END => Self::End, value => Self::__Unknown(value), } } @@ -2586,11 +2586,11 @@ impl FromGlib for State { unsafe fn from_glib(value: ffi::GstState) -> Self { skip_assert_initialized!(); match value { - 0 => Self::VoidPending, - 1 => Self::Null, - 2 => Self::Ready, - 3 => Self::Paused, - 4 => Self::Playing, + ffi::GST_STATE_VOID_PENDING => Self::VoidPending, + ffi::GST_STATE_NULL => Self::Null, + ffi::GST_STATE_READY => Self::Ready, + ffi::GST_STATE_PAUSED => Self::Paused, + ffi::GST_STATE_PLAYING => Self::Playing, value => Self::__Unknown(value), } } @@ -2690,16 +2690,16 @@ impl FromGlib for StateChange { unsafe fn from_glib(value: ffi::GstStateChange) -> Self { skip_assert_initialized!(); match value { - 10 => Self::NullToReady, - 19 => Self::ReadyToPaused, - 28 => Self::PausedToPlaying, - 35 => Self::PlayingToPaused, - 26 => Self::PausedToReady, - 17 => Self::ReadyToNull, - 9 => Self::NullToNull, - 18 => Self::ReadyToReady, - 27 => Self::PausedToPaused, - 36 => Self::PlayingToPlaying, + ffi::GST_STATE_CHANGE_NULL_TO_READY => Self::NullToReady, + ffi::GST_STATE_CHANGE_READY_TO_PAUSED => Self::ReadyToPaused, + ffi::GST_STATE_CHANGE_PAUSED_TO_PLAYING => Self::PausedToPlaying, + ffi::GST_STATE_CHANGE_PLAYING_TO_PAUSED => Self::PlayingToPaused, + ffi::GST_STATE_CHANGE_PAUSED_TO_READY => Self::PausedToReady, + ffi::GST_STATE_CHANGE_READY_TO_NULL => Self::ReadyToNull, + ffi::GST_STATE_CHANGE_NULL_TO_NULL => Self::NullToNull, + ffi::GST_STATE_CHANGE_READY_TO_READY => Self::ReadyToReady, + ffi::GST_STATE_CHANGE_PAUSED_TO_PAUSED => Self::PausedToPaused, + ffi::GST_STATE_CHANGE_PLAYING_TO_PLAYING => Self::PlayingToPlaying, value => Self::__Unknown(value), } } @@ -2775,10 +2775,10 @@ impl FromGlib for StateChangeReturn { unsafe fn from_glib(value: ffi::GstStateChangeReturn) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Failure, - 1 => Self::Success, - 2 => Self::Async, - 3 => Self::NoPreroll, + ffi::GST_STATE_CHANGE_FAILURE => Self::Failure, + ffi::GST_STATE_CHANGE_SUCCESS => Self::Success, + ffi::GST_STATE_CHANGE_ASYNC => Self::Async, + ffi::GST_STATE_CHANGE_NO_PREROLL => Self::NoPreroll, value => Self::__Unknown(value), } } @@ -2883,20 +2883,20 @@ impl FromGlib for StreamError { unsafe fn from_glib(value: ffi::GstStreamError) -> Self { skip_assert_initialized!(); match value { - 1 => Self::Failed, - 2 => Self::TooLazy, - 3 => Self::NotImplemented, - 4 => Self::TypeNotFound, - 5 => Self::WrongType, - 6 => Self::CodecNotFound, - 7 => Self::Decode, - 8 => Self::Encode, - 9 => Self::Demux, - 10 => Self::Mux, - 11 => Self::Format, - 12 => Self::Decrypt, - 13 => Self::DecryptNokey, - 14 => Self::NumErrors, + ffi::GST_STREAM_ERROR_FAILED => Self::Failed, + ffi::GST_STREAM_ERROR_TOO_LAZY => Self::TooLazy, + ffi::GST_STREAM_ERROR_NOT_IMPLEMENTED => Self::NotImplemented, + ffi::GST_STREAM_ERROR_TYPE_NOT_FOUND => Self::TypeNotFound, + ffi::GST_STREAM_ERROR_WRONG_TYPE => Self::WrongType, + ffi::GST_STREAM_ERROR_CODEC_NOT_FOUND => Self::CodecNotFound, + ffi::GST_STREAM_ERROR_DECODE => Self::Decode, + ffi::GST_STREAM_ERROR_ENCODE => Self::Encode, + ffi::GST_STREAM_ERROR_DEMUX => Self::Demux, + ffi::GST_STREAM_ERROR_MUX => Self::Mux, + ffi::GST_STREAM_ERROR_FORMAT => Self::Format, + ffi::GST_STREAM_ERROR_DECRYPT => Self::Decrypt, + ffi::GST_STREAM_ERROR_DECRYPT_NOKEY => Self::DecryptNokey, + ffi::GST_STREAM_ERROR_NUM_ERRORS => Self::NumErrors, value => Self::__Unknown(value), } } @@ -2916,20 +2916,20 @@ impl ErrorDomain for StreamError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 1 => Some(Self::Failed), - 2 => Some(Self::TooLazy), - 3 => Some(Self::NotImplemented), - 4 => Some(Self::TypeNotFound), - 5 => Some(Self::WrongType), - 6 => Some(Self::CodecNotFound), - 7 => Some(Self::Decode), - 8 => Some(Self::Encode), - 9 => Some(Self::Demux), - 10 => Some(Self::Mux), - 11 => Some(Self::Format), - 12 => Some(Self::Decrypt), - 13 => Some(Self::DecryptNokey), - 14 => Some(Self::NumErrors), + ffi::GST_STREAM_ERROR_FAILED => Some(Self::Failed), + ffi::GST_STREAM_ERROR_TOO_LAZY => Some(Self::TooLazy), + ffi::GST_STREAM_ERROR_NOT_IMPLEMENTED => Some(Self::NotImplemented), + ffi::GST_STREAM_ERROR_TYPE_NOT_FOUND => Some(Self::TypeNotFound), + ffi::GST_STREAM_ERROR_WRONG_TYPE => Some(Self::WrongType), + ffi::GST_STREAM_ERROR_CODEC_NOT_FOUND => Some(Self::CodecNotFound), + ffi::GST_STREAM_ERROR_DECODE => Some(Self::Decode), + ffi::GST_STREAM_ERROR_ENCODE => Some(Self::Encode), + ffi::GST_STREAM_ERROR_DEMUX => Some(Self::Demux), + ffi::GST_STREAM_ERROR_MUX => Some(Self::Mux), + ffi::GST_STREAM_ERROR_FORMAT => Some(Self::Format), + ffi::GST_STREAM_ERROR_DECRYPT => Some(Self::Decrypt), + ffi::GST_STREAM_ERROR_DECRYPT_NOKEY => Some(Self::DecryptNokey), + ffi::GST_STREAM_ERROR_NUM_ERRORS => Some(Self::NumErrors), _ => Some(Self::Failed), } } @@ -3013,13 +3013,13 @@ impl FromGlib for StreamStatusType { unsafe fn from_glib(value: ffi::GstStreamStatusType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Create, - 1 => Self::Enter, - 2 => Self::Leave, - 3 => Self::Destroy, - 8 => Self::Start, - 9 => Self::Pause, - 10 => Self::Stop, + ffi::GST_STREAM_STATUS_TYPE_CREATE => Self::Create, + ffi::GST_STREAM_STATUS_TYPE_ENTER => Self::Enter, + ffi::GST_STREAM_STATUS_TYPE_LEAVE => Self::Leave, + ffi::GST_STREAM_STATUS_TYPE_DESTROY => Self::Destroy, + ffi::GST_STREAM_STATUS_TYPE_START => Self::Start, + ffi::GST_STREAM_STATUS_TYPE_PAUSE => Self::Pause, + ffi::GST_STREAM_STATUS_TYPE_STOP => Self::Stop, value => Self::__Unknown(value), } } @@ -3088,8 +3088,8 @@ impl FromGlib for StructureChangeType { unsafe fn from_glib(value: ffi::GstStructureChangeType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Link, - 1 => Self::Unlink, + ffi::GST_STRUCTURE_CHANGE_TYPE_PAD_LINK => Self::Link, + ffi::GST_STRUCTURE_CHANGE_TYPE_PAD_UNLINK => Self::Unlink, value => Self::__Unknown(value), } } @@ -3167,11 +3167,11 @@ impl FromGlib for TagFlag { unsafe fn from_glib(value: ffi::GstTagFlag) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Undefined, - 1 => Self::Meta, - 2 => Self::Encoded, - 3 => Self::Decoded, - 4 => Self::Count, + ffi::GST_TAG_FLAG_UNDEFINED => Self::Undefined, + ffi::GST_TAG_FLAG_META => Self::Meta, + ffi::GST_TAG_FLAG_ENCODED => Self::Encoded, + ffi::GST_TAG_FLAG_DECODED => Self::Decoded, + ffi::GST_TAG_FLAG_COUNT => Self::Count, value => Self::__Unknown(value), } } @@ -3258,14 +3258,14 @@ impl FromGlib for TagMergeMode { unsafe fn from_glib(value: ffi::GstTagMergeMode) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Undefined, - 1 => Self::ReplaceAll, - 2 => Self::Replace, - 3 => Self::Append, - 4 => Self::Prepend, - 5 => Self::Keep, - 6 => Self::KeepAll, - 7 => Self::Count, + ffi::GST_TAG_MERGE_UNDEFINED => Self::Undefined, + ffi::GST_TAG_MERGE_REPLACE_ALL => Self::ReplaceAll, + ffi::GST_TAG_MERGE_REPLACE => Self::Replace, + ffi::GST_TAG_MERGE_APPEND => Self::Append, + ffi::GST_TAG_MERGE_PREPEND => Self::Prepend, + ffi::GST_TAG_MERGE_KEEP => Self::Keep, + ffi::GST_TAG_MERGE_KEEP_ALL => Self::KeepAll, + ffi::GST_TAG_MERGE_COUNT => Self::Count, value => Self::__Unknown(value), } } @@ -3335,8 +3335,8 @@ impl FromGlib for TagScope { unsafe fn from_glib(value: ffi::GstTagScope) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Stream, - 1 => Self::Global, + ffi::GST_TAG_SCOPE_STREAM => Self::Stream, + ffi::GST_TAG_SCOPE_GLOBAL => Self::Global, value => Self::__Unknown(value), } } @@ -3408,9 +3408,9 @@ impl FromGlib for TaskState { unsafe fn from_glib(value: ffi::GstTaskState) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Started, - 1 => Self::Stopped, - 2 => Self::Paused, + ffi::GST_TASK_STARTED => Self::Started, + ffi::GST_TASK_STOPPED => Self::Stopped, + ffi::GST_TASK_PAUSED => Self::Paused, value => Self::__Unknown(value), } } @@ -3509,13 +3509,13 @@ impl FromGlib for TocEntryType { unsafe fn from_glib(value: ffi::GstTocEntryType) -> Self { skip_assert_initialized!(); match value { - -3 => Self::Angle, - -2 => Self::Version, - -1 => Self::Edition, - 0 => Self::Invalid, - 1 => Self::Title, - 2 => Self::Track, - 3 => Self::Chapter, + ffi::GST_TOC_ENTRY_TYPE_ANGLE => Self::Angle, + ffi::GST_TOC_ENTRY_TYPE_VERSION => Self::Version, + ffi::GST_TOC_ENTRY_TYPE_EDITION => Self::Edition, + ffi::GST_TOC_ENTRY_TYPE_INVALID => Self::Invalid, + ffi::GST_TOC_ENTRY_TYPE_TITLE => Self::Title, + ffi::GST_TOC_ENTRY_TYPE_TRACK => Self::Track, + ffi::GST_TOC_ENTRY_TYPE_CHAPTER => Self::Chapter, value => Self::__Unknown(value), } } @@ -3591,10 +3591,10 @@ impl FromGlib for TocLoopType { unsafe fn from_glib(value: ffi::GstTocLoopType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Forward, - 2 => Self::Reverse, - 3 => Self::PingPong, + ffi::GST_TOC_LOOP_NONE => Self::None, + ffi::GST_TOC_LOOP_FORWARD => Self::Forward, + ffi::GST_TOC_LOOP_REVERSE => Self::Reverse, + ffi::GST_TOC_LOOP_PING_PONG => Self::PingPong, value => Self::__Unknown(value), } } @@ -3664,8 +3664,8 @@ impl FromGlib for TocScope { unsafe fn from_glib(value: ffi::GstTocScope) -> Self { skip_assert_initialized!(); match value { - 1 => Self::Global, - 2 => Self::Current, + ffi::GST_TOC_SCOPE_GLOBAL => Self::Global, + ffi::GST_TOC_SCOPE_CURRENT => Self::Current, value => Self::__Unknown(value), } } @@ -3746,12 +3746,12 @@ impl FromGlib for TypeFindProbability { unsafe fn from_glib(value: ffi::GstTypeFindProbability) -> Self { skip_assert_initialized!(); match value { - 0 => Self::None, - 1 => Self::Minimum, - 50 => Self::Possible, - 80 => Self::Likely, - 99 => Self::NearlyCertain, - 100 => Self::Maximum, + ffi::GST_TYPE_FIND_NONE => Self::None, + ffi::GST_TYPE_FIND_MINIMUM => Self::Minimum, + ffi::GST_TYPE_FIND_POSSIBLE => Self::Possible, + ffi::GST_TYPE_FIND_LIKELY => Self::Likely, + ffi::GST_TYPE_FIND_NEARLY_CERTAIN => Self::NearlyCertain, + ffi::GST_TYPE_FIND_MAXIMUM => Self::Maximum, value => Self::__Unknown(value), } } @@ -3826,10 +3826,10 @@ impl FromGlib for URIError { unsafe fn from_glib(value: ffi::GstURIError) -> Self { skip_assert_initialized!(); match value { - 0 => Self::UnsupportedProtocol, - 1 => Self::BadUri, - 2 => Self::BadState, - 3 => Self::BadReference, + ffi::GST_URI_ERROR_UNSUPPORTED_PROTOCOL => Self::UnsupportedProtocol, + ffi::GST_URI_ERROR_BAD_URI => Self::BadUri, + ffi::GST_URI_ERROR_BAD_STATE => Self::BadState, + ffi::GST_URI_ERROR_BAD_REFERENCE => Self::BadReference, value => Self::__Unknown(value), } } @@ -3849,10 +3849,10 @@ impl ErrorDomain for URIError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 0 => Some(Self::UnsupportedProtocol), - 1 => Some(Self::BadUri), - 2 => Some(Self::BadState), - 3 => Some(Self::BadReference), + ffi::GST_URI_ERROR_UNSUPPORTED_PROTOCOL => Some(Self::UnsupportedProtocol), + ffi::GST_URI_ERROR_BAD_URI => Some(Self::BadUri), + ffi::GST_URI_ERROR_BAD_STATE => Some(Self::BadState), + ffi::GST_URI_ERROR_BAD_REFERENCE => Some(Self::BadReference), value => Some(Self::__Unknown(value)), } } @@ -3924,9 +3924,9 @@ impl FromGlib for URIType { unsafe fn from_glib(value: ffi::GstURIType) -> Self { skip_assert_initialized!(); match value { - 0 => Self::Unknown, - 1 => Self::Sink, - 2 => Self::Src, + ffi::GST_URI_UNKNOWN => Self::Unknown, + ffi::GST_URI_SINK => Self::Sink, + ffi::GST_URI_SRC => Self::Src, value => Self::__Unknown(value), } } diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index 5f5e482ca..770c3630e 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -340,7 +340,7 @@ impl> PadExt for O { fn last_flow_result(&self) -> Result { unsafe { - FlowSuccess::try_from_glib(ffi::gst_pad_get_last_flow_return( + try_from_glib(ffi::gst_pad_get_last_flow_return( self.as_ref().to_glib_none().0, )) } @@ -448,7 +448,7 @@ impl> PadExt for O { fn link>(&self, sinkpad: &P) -> Result { unsafe { - PadLinkSuccess::try_from_glib(ffi::gst_pad_link( + try_from_glib(ffi::gst_pad_link( self.as_ref().to_glib_none().0, sinkpad.as_ref().to_glib_none().0, )) @@ -461,7 +461,7 @@ impl> PadExt for O { flags: PadLinkCheck, ) -> Result { unsafe { - PadLinkSuccess::try_from_glib(ffi::gst_pad_link_full( + try_from_glib(ffi::gst_pad_link_full( self.as_ref().to_glib_none().0, sinkpad.as_ref().to_glib_none().0, flags.into_glib(), @@ -591,7 +591,7 @@ impl> PadExt for O { fn store_sticky_event(&self, event: &Event) -> Result { unsafe { - FlowSuccess::try_from_glib(ffi::gst_pad_store_sticky_event( + try_from_glib(ffi::gst_pad_store_sticky_event( self.as_ref().to_glib_none().0, event.to_glib_none().0, )) diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index de2c87ab0..524f5becf 100644 --- a/gstreamer/src/auto/versions.txt +++ b/gstreamer/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer/sys/build.rs b/gstreamer/sys/build.rs index 0dc390415..9642c8d86 100644 --- a/gstreamer/sys/build.rs +++ b/gstreamer/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer/sys/src/lib.rs b/gstreamer/sys/src/lib.rs index a6a75bb5d..b338593fb 100644 --- a/gstreamer/sys/src/lib.rs +++ b/gstreamer/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -984,7 +984,7 @@ pub union GstControlBinding_ABI { impl ::std::fmt::Debug for GstControlBinding_ABI { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstControlBinding_ABI @ {:?}", self as *const _)) + f.debug_struct(&format!("GstControlBinding_ABI @ {:p}", self)) .field("abi", unsafe { &self.abi }) .field("_gst_reserved", unsafe { &self._gst_reserved }) .finish() @@ -1000,7 +1000,7 @@ pub union GstPadProbeInfo_ABI { impl ::std::fmt::Debug for GstPadProbeInfo_ABI { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPadProbeInfo_ABI @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPadProbeInfo_ABI @ {:p}", self)) .field("_gst_reserved", unsafe { &self._gst_reserved }) .field("abi", unsafe { &self.abi }) .finish() @@ -1016,7 +1016,7 @@ pub union GstPadTemplate_ABI { impl ::std::fmt::Debug for GstPadTemplate_ABI { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPadTemplate_ABI @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPadTemplate_ABI @ {:p}", self)) .field("_gst_reserved", unsafe { &self._gst_reserved }) .field("abi", unsafe { &self.abi }) .finish() @@ -1032,7 +1032,7 @@ pub union GstPad_ABI { impl ::std::fmt::Debug for GstPad_ABI { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPad_ABI @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPad_ABI @ {:p}", self)) .field("_gst_reserved", unsafe { &self._gst_reserved }) .field("abi", unsafe { &self.abi }) .finish() @@ -1202,7 +1202,7 @@ pub struct GstAllocationParams { impl ::std::fmt::Debug for GstAllocationParams { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAllocationParams @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAllocationParams @ {:p}", self)) .field("flags", &self.flags) .field("align", &self.align) .field("prefix", &self.prefix) @@ -1224,7 +1224,7 @@ pub struct GstAllocatorClass { impl ::std::fmt::Debug for GstAllocatorClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAllocatorClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAllocatorClass @ {:p}", self)) .field("object_class", &self.object_class) .field("alloc", &self.alloc) .field("free", &self.free) @@ -1242,7 +1242,7 @@ pub struct GstAtomicQueue(c_void); impl ::std::fmt::Debug for GstAtomicQueue { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAtomicQueue @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAtomicQueue @ {:p}", self)) .finish() } } @@ -1266,7 +1266,7 @@ pub struct GstBinClass { impl ::std::fmt::Debug for GstBinClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBinClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBinClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("element_added", &self.element_added) .field("element_removed", &self.element_removed) @@ -1299,7 +1299,7 @@ pub struct GstBuffer { impl ::std::fmt::Debug for GstBuffer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBuffer @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBuffer @ {:p}", self)) .field("mini_object", &self.mini_object) .field("pool", &self.pool) .field("pts", &self.pts) @@ -1316,7 +1316,7 @@ pub struct GstBufferList(c_void); impl ::std::fmt::Debug for GstBufferList { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBufferList @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBufferList @ {:p}", self)) .finish() } } @@ -1333,15 +1333,12 @@ pub struct GstBufferPoolAcquireParams { impl ::std::fmt::Debug for GstBufferPoolAcquireParams { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstBufferPoolAcquireParams @ {:?}", - self as *const _ - )) - .field("format", &self.format) - .field("start", &self.start) - .field("stop", &self.stop) - .field("flags", &self.flags) - .finish() + f.debug_struct(&format!("GstBufferPoolAcquireParams @ {:p}", self)) + .field("format", &self.format) + .field("start", &self.start) + .field("stop", &self.stop) + .field("flags", &self.flags) + .finish() } } @@ -1377,7 +1374,7 @@ pub struct GstBufferPoolClass { impl ::std::fmt::Debug for GstBufferPoolClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBufferPoolClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBufferPoolClass @ {:p}", self)) .field("object_class", &self.object_class) .field("get_options", &self.get_options) .field("set_config", &self.set_config) @@ -1410,7 +1407,7 @@ pub struct GstBusClass { impl ::std::fmt::Debug for GstBusClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBusClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBusClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("message", &self.message) .field("sync_message", &self.sync_message) @@ -1431,7 +1428,7 @@ pub struct GstCaps { impl ::std::fmt::Debug for GstCaps { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstCaps @ {:?}", self as *const _)) + f.debug_struct(&format!("GstCaps @ {:p}", self)) .field("mini_object", &self.mini_object) .finish() } @@ -1442,7 +1439,7 @@ pub struct GstCapsFeatures(c_void); impl ::std::fmt::Debug for GstCapsFeatures { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstCapsFeatures @ {:?}", self as *const _)) + f.debug_struct(&format!("GstCapsFeatures @ {:p}", self)) .finish() } } @@ -1465,7 +1462,7 @@ pub struct GstChildProxyInterface { impl ::std::fmt::Debug for GstChildProxyInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstChildProxyInterface @ {:?}", self as *const _)) + f.debug_struct(&format!("GstChildProxyInterface @ {:p}", self)) .field("parent", &self.parent) .field("get_child_by_name", &self.get_child_by_name) .field("get_child_by_index", &self.get_child_by_index) @@ -1499,7 +1496,7 @@ pub struct GstClockClass { impl ::std::fmt::Debug for GstClockClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstClockClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstClockClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("change_resolution", &self.change_resolution) .field("get_resolution", &self.get_resolution) @@ -1530,7 +1527,7 @@ pub struct GstClockEntry { impl ::std::fmt::Debug for GstClockEntry { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstClockEntry @ {:?}", self as *const _)) + f.debug_struct(&format!("GstClockEntry @ {:p}", self)) .field("refcount", &self.refcount) .field("clock", &self.clock) .field("type_", &self.type_) @@ -1556,8 +1553,7 @@ pub struct GstContext(c_void); impl ::std::fmt::Debug for GstContext { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstContext @ {:?}", self as *const _)) - .finish() + f.debug_struct(&format!("GstContext @ {:p}", self)).finish() } } @@ -1598,7 +1594,7 @@ pub struct GstControlBindingClass { impl ::std::fmt::Debug for GstControlBindingClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstControlBindingClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstControlBindingClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("sync_values", &self.sync_values) .field("get_value", &self.get_value) @@ -1621,12 +1617,9 @@ pub struct GstControlBinding_ABI_abi { impl ::std::fmt::Debug for GstControlBinding_ABI_abi { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstControlBinding_ABI_abi @ {:?}", - self as *const _ - )) - .field("priv_", &self.priv_) - .finish() + f.debug_struct(&format!("GstControlBinding_ABI_abi @ {:p}", self)) + .field("priv_", &self.priv_) + .finish() } } @@ -1639,7 +1632,7 @@ pub struct GstControlSourceClass { impl ::std::fmt::Debug for GstControlSourceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstControlSourceClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstControlSourceClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -1650,7 +1643,7 @@ pub struct GstDateTime(c_void); impl ::std::fmt::Debug for GstDateTime { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDateTime @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDateTime @ {:p}", self)) .finish() } } @@ -1666,7 +1659,7 @@ pub struct GstDebugCategory { impl ::std::fmt::Debug for GstDebugCategory { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDebugCategory @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDebugCategory @ {:p}", self)) .finish() } } @@ -1689,7 +1682,7 @@ pub struct GstDeviceClass { impl ::std::fmt::Debug for GstDeviceClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDeviceClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDeviceClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("create_element", &self.create_element) .field("reconfigure_element", &self.reconfigure_element) @@ -1706,7 +1699,7 @@ pub struct GstDeviceMonitorClass { impl ::std::fmt::Debug for GstDeviceMonitorClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDeviceMonitorClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDeviceMonitorClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -1736,7 +1729,7 @@ pub struct GstDeviceProviderClass { impl ::std::fmt::Debug for GstDeviceProviderClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDeviceProviderClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDeviceProviderClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("factory", &self.factory) .field("probe", &self.probe) @@ -1806,7 +1799,7 @@ pub struct GstElementClass { impl ::std::fmt::Debug for GstElementClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstElementClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstElementClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("metadata", &self.metadata) .field("elementfactory", &self.elementfactory) @@ -1849,7 +1842,7 @@ pub struct GstEvent { impl ::std::fmt::Debug for GstEvent { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstEvent @ {:?}", self as *const _)) + f.debug_struct(&format!("GstEvent @ {:p}", self)) .field("mini_object", &self.mini_object) .field("type_", &self.type_) .field("timestamp", &self.timestamp) @@ -1869,7 +1862,7 @@ pub struct GstFormatDefinition { impl ::std::fmt::Debug for GstFormatDefinition { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstFormatDefinition @ {:?}", self as *const _)) + f.debug_struct(&format!("GstFormatDefinition @ {:p}", self)) .field("value", &self.value) .field("nick", &self.nick) .field("description", &self.description) @@ -1887,7 +1880,7 @@ pub struct GstGhostPadClass { impl ::std::fmt::Debug for GstGhostPadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGhostPadClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGhostPadClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -1917,7 +1910,7 @@ pub struct GstIterator { impl ::std::fmt::Debug for GstIterator { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstIterator @ {:?}", self as *const _)) + f.debug_struct(&format!("GstIterator @ {:p}", self)) .field("copy", &self.copy) .field("next", &self.next) .field("item", &self.item) @@ -1947,7 +1940,7 @@ pub struct GstMapInfo { impl ::std::fmt::Debug for GstMapInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMapInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMapInfo @ {:p}", self)) .field("memory", &self.memory) .field("flags", &self.flags) .field("data", &self.data) @@ -1972,7 +1965,7 @@ pub struct GstMemory { impl ::std::fmt::Debug for GstMemory { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMemory @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMemory @ {:p}", self)) .field("mini_object", &self.mini_object) .field("allocator", &self.allocator) .field("parent", &self.parent) @@ -1998,7 +1991,7 @@ pub struct GstMessage { impl ::std::fmt::Debug for GstMessage { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMessage @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMessage @ {:p}", self)) .field("mini_object", &self.mini_object) .field("type_", &self.type_) .field("timestamp", &self.timestamp) @@ -2017,7 +2010,7 @@ pub struct GstMeta { impl ::std::fmt::Debug for GstMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMeta @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMeta @ {:p}", self)) .field("flags", &self.flags) .field("info", &self.info) .finish() @@ -2037,7 +2030,7 @@ pub struct GstMetaInfo { impl ::std::fmt::Debug for GstMetaInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMetaInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMetaInfo @ {:p}", self)) .field("api", &self.api) .field("type_", &self.type_) .field("size", &self.size) @@ -2058,7 +2051,7 @@ pub struct GstMetaTransformCopy { impl ::std::fmt::Debug for GstMetaTransformCopy { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMetaTransformCopy @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMetaTransformCopy @ {:p}", self)) .field("region", &self.region) .field("offset", &self.offset) .field("size", &self.size) @@ -2082,7 +2075,7 @@ pub struct GstMiniObject { impl ::std::fmt::Debug for GstMiniObject { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstMiniObject @ {:?}", self as *const _)) + f.debug_struct(&format!("GstMiniObject @ {:p}", self)) .field("type_", &self.type_) .field("refcount", &self.refcount) .field("lockstate", &self.lockstate) @@ -2106,7 +2099,7 @@ pub struct GstObjectClass { impl ::std::fmt::Debug for GstObjectClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstObjectClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstObjectClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("path_string_separator", &self.path_string_separator) .field("deep_notify", &self.deep_notify) @@ -2125,7 +2118,7 @@ pub struct GstPadClass { impl ::std::fmt::Debug for GstPadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPadClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPadClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("linked", &self.linked) .field("unlinked", &self.unlinked) @@ -2151,7 +2144,7 @@ pub struct GstPadProbeInfo { impl ::std::fmt::Debug for GstPadProbeInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPadProbeInfo @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPadProbeInfo @ {:p}", self)) .field("type_", &self.type_) .field("id", &self.id) .field("data", &self.data) @@ -2170,7 +2163,7 @@ pub struct GstPadProbeInfo_ABI_abi { impl ::std::fmt::Debug for GstPadProbeInfo_ABI_abi { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPadProbeInfo_ABI_abi @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPadProbeInfo_ABI_abi @ {:p}", self)) .field("flow_ret", &self.flow_ret) .finish() } @@ -2186,7 +2179,7 @@ pub struct GstPadTemplateClass { impl ::std::fmt::Debug for GstPadTemplateClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPadTemplateClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPadTemplateClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("pad_created", &self.pad_created) .finish() @@ -2202,7 +2195,7 @@ pub struct GstPadTemplate_ABI_abi { impl ::std::fmt::Debug for GstPadTemplate_ABI_abi { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPadTemplate_ABI_abi @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPadTemplate_ABI_abi @ {:p}", self)) .field("gtype", &self.gtype) .field("documentation_caps", &self.documentation_caps) .finish() @@ -2218,7 +2211,7 @@ pub struct GstPad_ABI_abi { impl ::std::fmt::Debug for GstPad_ABI_abi { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPad_ABI_abi @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPad_ABI_abi @ {:p}", self)) .field("last_flowret", &self.last_flowret) .field("eventfullfunc", &self.eventfullfunc) .finish() @@ -2234,7 +2227,7 @@ pub struct GstParamSpecArray { impl ::std::fmt::Debug for GstParamSpecArray { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstParamSpecArray @ {:?}", self as *const _)) + f.debug_struct(&format!("GstParamSpecArray @ {:p}", self)) .field("parent_instance", &self.parent_instance) .field("element_spec", &self.element_spec) .finish() @@ -2255,7 +2248,7 @@ pub struct GstParamSpecFraction { impl ::std::fmt::Debug for GstParamSpecFraction { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstParamSpecFraction @ {:?}", self as *const _)) + f.debug_struct(&format!("GstParamSpecFraction @ {:p}", self)) .field("parent_instance", &self.parent_instance) .field("min_num", &self.min_num) .field("min_den", &self.min_den) @@ -2276,7 +2269,7 @@ pub struct GstParentBufferMeta { impl ::std::fmt::Debug for GstParentBufferMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstParentBufferMeta @ {:?}", self as *const _)) + f.debug_struct(&format!("GstParentBufferMeta @ {:p}", self)) .field("parent", &self.parent) .field("buffer", &self.buffer) .finish() @@ -2288,7 +2281,7 @@ pub struct GstParseContext(c_void); impl ::std::fmt::Debug for GstParseContext { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstParseContext @ {:?}", self as *const _)) + f.debug_struct(&format!("GstParseContext @ {:p}", self)) .finish() } } @@ -2302,7 +2295,7 @@ pub struct GstPipelineClass { impl ::std::fmt::Debug for GstPipelineClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPipelineClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPipelineClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -2337,7 +2330,7 @@ pub struct GstPluginDesc { impl ::std::fmt::Debug for GstPluginDesc { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPluginDesc @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPluginDesc @ {:p}", self)) .field("major_version", &self.major_version) .field("minor_version", &self.minor_version) .field("name", &self.name) @@ -2372,7 +2365,7 @@ pub struct GstPollFD { impl ::std::fmt::Debug for GstPollFD { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPollFD @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPollFD @ {:p}", self)) .field("fd", &self.fd) .finish() } @@ -2410,7 +2403,7 @@ pub struct GstPresetInterface { impl ::std::fmt::Debug for GstPresetInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPresetInterface @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPresetInterface @ {:p}", self)) .field("parent", &self.parent) .field("get_preset_names", &self.get_preset_names) .field("get_property_names", &self.get_property_names) @@ -2432,7 +2425,7 @@ pub struct GstPromise { impl ::std::fmt::Debug for GstPromise { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPromise @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPromise @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -2447,7 +2440,7 @@ pub struct GstProtectionMeta { impl ::std::fmt::Debug for GstProtectionMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstProtectionMeta @ {:?}", self as *const _)) + f.debug_struct(&format!("GstProtectionMeta @ {:p}", self)) .field("meta", &self.meta) .field("info", &self.info) .finish() @@ -2463,7 +2456,7 @@ pub struct GstProxyPadClass { impl ::std::fmt::Debug for GstProxyPadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstProxyPadClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstProxyPadClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -2483,7 +2476,7 @@ pub struct GstQuery { impl ::std::fmt::Debug for GstQuery { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstQuery @ {:?}", self as *const _)) + f.debug_struct(&format!("GstQuery @ {:p}", self)) .field("mini_object", &self.mini_object) .field("type_", &self.type_) .finish() @@ -2501,15 +2494,12 @@ pub struct GstReferenceTimestampMeta { impl ::std::fmt::Debug for GstReferenceTimestampMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstReferenceTimestampMeta @ {:?}", - self as *const _ - )) - .field("parent", &self.parent) - .field("reference", &self.reference) - .field("timestamp", &self.timestamp) - .field("duration", &self.duration) - .finish() + f.debug_struct(&format!("GstReferenceTimestampMeta @ {:p}", self)) + .field("parent", &self.parent) + .field("reference", &self.reference) + .field("timestamp", &self.timestamp) + .field("duration", &self.duration) + .finish() } } @@ -2521,7 +2511,7 @@ pub struct GstRegistryClass { impl ::std::fmt::Debug for GstRegistryClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRegistryClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRegistryClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -2537,8 +2527,7 @@ pub struct GstSample(c_void); impl ::std::fmt::Debug for GstSample { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstSample @ {:?}", self as *const _)) - .finish() + f.debug_struct(&format!("GstSample @ {:p}", self)).finish() } } @@ -2561,7 +2550,7 @@ pub struct GstSegment { impl ::std::fmt::Debug for GstSegment { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstSegment @ {:?}", self as *const _)) + f.debug_struct(&format!("GstSegment @ {:p}", self)) .field("flags", &self.flags) .field("rate", &self.rate) .field("applied_rate", &self.applied_rate) @@ -2587,7 +2576,7 @@ pub struct GstStaticCaps { impl ::std::fmt::Debug for GstStaticCaps { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstStaticCaps @ {:?}", self as *const _)) + f.debug_struct(&format!("GstStaticCaps @ {:p}", self)) .field("caps", &self.caps) .field("string", &self.string) .finish() @@ -2605,7 +2594,7 @@ pub struct GstStaticPadTemplate { impl ::std::fmt::Debug for GstStaticPadTemplate { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstStaticPadTemplate @ {:?}", self as *const _)) + f.debug_struct(&format!("GstStaticPadTemplate @ {:p}", self)) .field("name_template", &self.name_template) .field("direction", &self.direction) .field("presence", &self.presence) @@ -2623,7 +2612,7 @@ pub struct GstStreamClass { impl ::std::fmt::Debug for GstStreamClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstStreamClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstStreamClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -2641,13 +2630,10 @@ pub struct GstStreamCollectionClass { impl ::std::fmt::Debug for GstStreamCollectionClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstStreamCollectionClass @ {:?}", - self as *const _ - )) - .field("parent_class", &self.parent_class) - .field("stream_notify", &self.stream_notify) - .finish() + f.debug_struct(&format!("GstStreamCollectionClass @ {:p}", self)) + .field("parent_class", &self.parent_class) + .field("stream_notify", &self.stream_notify) + .finish() } } @@ -2670,7 +2656,7 @@ pub struct GstStructure { impl ::std::fmt::Debug for GstStructure { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstStructure @ {:?}", self as *const _)) + f.debug_struct(&format!("GstStructure @ {:p}", self)) .field("type_", &self.type_) .finish() } @@ -2685,7 +2671,7 @@ pub struct GstSystemClockClass { impl ::std::fmt::Debug for GstSystemClockClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstSystemClockClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstSystemClockClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -2704,7 +2690,7 @@ pub struct GstTagList { impl ::std::fmt::Debug for GstTagList { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTagList @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTagList @ {:p}", self)) .field("mini_object", &self.mini_object) .finish() } @@ -2718,7 +2704,7 @@ pub struct GstTagSetterInterface { impl ::std::fmt::Debug for GstTagSetterInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTagSetterInterface @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTagSetterInterface @ {:p}", self)) .field("g_iface", &self.g_iface) .finish() } @@ -2734,7 +2720,7 @@ pub struct GstTaskClass { impl ::std::fmt::Debug for GstTaskClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTaskClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTaskClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -2760,7 +2746,7 @@ pub struct GstTaskPoolClass { impl ::std::fmt::Debug for GstTaskPoolClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTaskPoolClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTaskPoolClass @ {:p}", self)) .field("parent_class", &self.parent_class) .field("prepare", &self.prepare) .field("cleanup", &self.cleanup) @@ -2784,7 +2770,7 @@ pub struct GstTimedValue { impl ::std::fmt::Debug for GstTimedValue { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTimedValue @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTimedValue @ {:p}", self)) .field("timestamp", &self.timestamp) .field("value", &self.value) .finish() @@ -2796,8 +2782,7 @@ pub struct GstToc(c_void); impl ::std::fmt::Debug for GstToc { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstToc @ {:?}", self as *const _)) - .finish() + f.debug_struct(&format!("GstToc @ {:p}", self)).finish() } } @@ -2806,7 +2791,7 @@ pub struct GstTocEntry(c_void); impl ::std::fmt::Debug for GstTocEntry { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTocEntry @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTocEntry @ {:p}", self)) .finish() } } @@ -2819,7 +2804,7 @@ pub struct GstTocSetterInterface { impl ::std::fmt::Debug for GstTocSetterInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTocSetterInterface @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTocSetterInterface @ {:p}", self)) .field("g_iface", &self.g_iface) .finish() } @@ -2834,7 +2819,7 @@ pub struct GstTracerClass { impl ::std::fmt::Debug for GstTracerClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTracerClass @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTracerClass @ {:p}", self)) .field("parent_class", &self.parent_class) .finish() } @@ -2867,7 +2852,7 @@ pub struct GstTypeFind { impl ::std::fmt::Debug for GstTypeFind { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTypeFind @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTypeFind @ {:p}", self)) .field("peek", &self.peek) .field("suggest", &self.suggest) .field("data", &self.data) @@ -2895,7 +2880,7 @@ pub struct GstURIHandlerInterface { impl ::std::fmt::Debug for GstURIHandlerInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstURIHandlerInterface @ {:?}", self as *const _)) + f.debug_struct(&format!("GstURIHandlerInterface @ {:p}", self)) .field("parent", &self.parent) .field("get_type", &self.get_type) .field("get_protocols", &self.get_protocols) @@ -2910,8 +2895,7 @@ pub struct GstUri(c_void); impl ::std::fmt::Debug for GstUri { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstUri @ {:?}", self as *const _)) - .finish() + f.debug_struct(&format!("GstUri @ {:p}", self)).finish() } } @@ -2927,7 +2911,7 @@ pub struct GstValueTable { impl ::std::fmt::Debug for GstValueTable { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstValueTable @ {:?}", self as *const _)) + f.debug_struct(&format!("GstValueTable @ {:p}", self)) .field("type_", &self.type_) .field("compare", &self.compare) .field("serialize", &self.serialize) @@ -2955,7 +2939,7 @@ pub struct GstAllocator { impl ::std::fmt::Debug for GstAllocator { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstAllocator @ {:?}", self as *const _)) + f.debug_struct(&format!("GstAllocator @ {:p}", self)) .field("object", &self.object) .field("mem_type", &self.mem_type) .field("mem_map", &self.mem_map) @@ -2989,7 +2973,7 @@ pub struct GstBin { impl ::std::fmt::Debug for GstBin { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBin @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBin @ {:p}", self)) .field("element", &self.element) .field("numchildren", &self.numchildren) .field("children", &self.children) @@ -3010,8 +2994,7 @@ pub struct GstBitmask(c_void); impl ::std::fmt::Debug for GstBitmask { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBitmask @ {:?}", self as *const _)) - .finish() + f.debug_struct(&format!("GstBitmask @ {:p}", self)).finish() } } @@ -3026,7 +3009,7 @@ pub struct GstBufferPool { impl ::std::fmt::Debug for GstBufferPool { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBufferPool @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBufferPool @ {:p}", self)) .field("object", &self.object) .field("flushing", &self.flushing) .finish() @@ -3043,7 +3026,7 @@ pub struct GstBus { impl ::std::fmt::Debug for GstBus { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstBus @ {:?}", self as *const _)) + f.debug_struct(&format!("GstBus @ {:p}", self)) .field("object", &self.object) .finish() } @@ -3059,7 +3042,7 @@ pub struct GstClock { impl ::std::fmt::Debug for GstClock { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstClock @ {:?}", self as *const _)) + f.debug_struct(&format!("GstClock @ {:p}", self)) .field("object", &self.object) .finish() } @@ -3078,7 +3061,7 @@ pub struct GstControlBinding { impl ::std::fmt::Debug for GstControlBinding { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstControlBinding @ {:?}", self as *const _)) + f.debug_struct(&format!("GstControlBinding @ {:p}", self)) .field("parent", &self.parent) .field("name", &self.name) .field("pspec", &self.pspec) @@ -3098,7 +3081,7 @@ pub struct GstControlSource { impl ::std::fmt::Debug for GstControlSource { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstControlSource @ {:?}", self as *const _)) + f.debug_struct(&format!("GstControlSource @ {:p}", self)) .field("parent", &self.parent) .field("get_value", &self.get_value) .field("get_value_array", &self.get_value_array) @@ -3116,7 +3099,7 @@ pub struct GstDevice { impl ::std::fmt::Debug for GstDevice { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDevice @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDevice @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -3132,7 +3115,7 @@ pub struct GstDeviceMonitor { impl ::std::fmt::Debug for GstDeviceMonitor { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDeviceMonitor @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDeviceMonitor @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -3149,7 +3132,7 @@ pub struct GstDeviceProvider { impl ::std::fmt::Debug for GstDeviceProvider { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDeviceProvider @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDeviceProvider @ {:p}", self)) .field("parent", &self.parent) .field("devices", &self.devices) .finish() @@ -3161,11 +3144,8 @@ pub struct GstDeviceProviderFactory(c_void); impl ::std::fmt::Debug for GstDeviceProviderFactory { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!( - "GstDeviceProviderFactory @ {:?}", - self as *const _ - )) - .finish() + f.debug_struct(&format!("GstDeviceProviderFactory @ {:p}", self)) + .finish() } } @@ -3174,7 +3154,7 @@ pub struct GstDoubleRange(c_void); impl ::std::fmt::Debug for GstDoubleRange { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDoubleRange @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDoubleRange @ {:p}", self)) .finish() } } @@ -3184,7 +3164,7 @@ pub struct GstDynamicTypeFactory(c_void); impl ::std::fmt::Debug for GstDynamicTypeFactory { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstDynamicTypeFactory @ {:?}", self as *const _)) + f.debug_struct(&format!("GstDynamicTypeFactory @ {:p}", self)) .finish() } } @@ -3218,7 +3198,7 @@ pub struct GstElement { impl ::std::fmt::Debug for GstElement { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstElement @ {:?}", self as *const _)) + f.debug_struct(&format!("GstElement @ {:p}", self)) .field("object", &self.object) .field("state_lock", &self.state_lock) .field("state_cond", &self.state_cond) @@ -3249,7 +3229,7 @@ pub struct GstElementFactory(c_void); impl ::std::fmt::Debug for GstElementFactory { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstElementFactory @ {:?}", self as *const _)) + f.debug_struct(&format!("GstElementFactory @ {:p}", self)) .finish() } } @@ -3259,8 +3239,7 @@ pub struct GstFlagSet(c_void); impl ::std::fmt::Debug for GstFlagSet { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstFlagSet @ {:?}", self as *const _)) - .finish() + f.debug_struct(&format!("GstFlagSet @ {:p}", self)).finish() } } @@ -3269,7 +3248,7 @@ pub struct GstFraction(c_void); impl ::std::fmt::Debug for GstFraction { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstFraction @ {:?}", self as *const _)) + f.debug_struct(&format!("GstFraction @ {:p}", self)) .finish() } } @@ -3279,7 +3258,7 @@ pub struct GstFractionRange(c_void); impl ::std::fmt::Debug for GstFractionRange { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstFractionRange @ {:?}", self as *const _)) + f.debug_struct(&format!("GstFractionRange @ {:p}", self)) .finish() } } @@ -3293,7 +3272,7 @@ pub struct GstGhostPad { impl ::std::fmt::Debug for GstGhostPad { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstGhostPad @ {:?}", self as *const _)) + f.debug_struct(&format!("GstGhostPad @ {:p}", self)) .field("pad", &self.pad) .finish() } @@ -3304,7 +3283,7 @@ pub struct GstInt64Range(c_void); impl ::std::fmt::Debug for GstInt64Range { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstInt64Range @ {:?}", self as *const _)) + f.debug_struct(&format!("GstInt64Range @ {:p}", self)) .finish() } } @@ -3314,7 +3293,7 @@ pub struct GstIntRange(c_void); impl ::std::fmt::Debug for GstIntRange { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstIntRange @ {:?}", self as *const _)) + f.debug_struct(&format!("GstIntRange @ {:p}", self)) .finish() } } @@ -3335,7 +3314,7 @@ pub struct GstObject { impl ::std::fmt::Debug for GstObject { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstObject @ {:?}", self as *const _)) + f.debug_struct(&format!("GstObject @ {:p}", self)) .field("object", &self.object) .field("lock", &self.lock) .field("name", &self.name) @@ -3397,7 +3376,7 @@ pub struct GstPad { impl ::std::fmt::Debug for GstPad { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPad @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPad @ {:p}", self)) .field("object", &self.object) .field("element_private", &self.element_private) .field("padtemplate", &self.padtemplate) @@ -3420,7 +3399,7 @@ pub struct GstPadTemplate { impl ::std::fmt::Debug for GstPadTemplate { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPadTemplate @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPadTemplate @ {:p}", self)) .field("object", &self.object) .field("name_template", &self.name_template) .field("direction", &self.direction) @@ -3436,7 +3415,7 @@ pub struct GstParamArray(c_void); impl ::std::fmt::Debug for GstParamArray { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstParamArray @ {:?}", self as *const _)) + f.debug_struct(&format!("GstParamArray @ {:p}", self)) .finish() } } @@ -3446,7 +3425,7 @@ pub struct GstParamFraction(c_void); impl ::std::fmt::Debug for GstParamFraction { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstParamFraction @ {:?}", self as *const _)) + f.debug_struct(&format!("GstParamFraction @ {:p}", self)) .finish() } } @@ -3464,7 +3443,7 @@ pub struct GstPipeline { impl ::std::fmt::Debug for GstPipeline { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPipeline @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPipeline @ {:p}", self)) .field("bin", &self.bin) .field("fixed_clock", &self.fixed_clock) .field("stream_time", &self.stream_time) @@ -3478,8 +3457,7 @@ pub struct GstPlugin(c_void); impl ::std::fmt::Debug for GstPlugin { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPlugin @ {:?}", self as *const _)) - .finish() + f.debug_struct(&format!("GstPlugin @ {:p}", self)).finish() } } @@ -3488,7 +3466,7 @@ pub struct GstPluginFeature(c_void); impl ::std::fmt::Debug for GstPluginFeature { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstPluginFeature @ {:?}", self as *const _)) + f.debug_struct(&format!("GstPluginFeature @ {:p}", self)) .finish() } } @@ -3502,7 +3480,7 @@ pub struct GstProxyPad { impl ::std::fmt::Debug for GstProxyPad { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstProxyPad @ {:?}", self as *const _)) + f.debug_struct(&format!("GstProxyPad @ {:p}", self)) .field("pad", &self.pad) .finish() } @@ -3517,7 +3495,7 @@ pub struct GstRegistry { impl ::std::fmt::Debug for GstRegistry { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstRegistry @ {:?}", self as *const _)) + f.debug_struct(&format!("GstRegistry @ {:p}", self)) .field("object", &self.object) .finish() } @@ -3534,7 +3512,7 @@ pub struct GstStream { impl ::std::fmt::Debug for GstStream { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstStream @ {:?}", self as *const _)) + f.debug_struct(&format!("GstStream @ {:p}", self)) .field("stream_id", &self.stream_id) .finish() } @@ -3551,7 +3529,7 @@ pub struct GstStreamCollection { impl ::std::fmt::Debug for GstStreamCollection { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstStreamCollection @ {:?}", self as *const _)) + f.debug_struct(&format!("GstStreamCollection @ {:p}", self)) .finish() } } @@ -3566,7 +3544,7 @@ pub struct GstSystemClock { impl ::std::fmt::Debug for GstSystemClock { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstSystemClock @ {:?}", self as *const _)) + f.debug_struct(&format!("GstSystemClock @ {:p}", self)) .field("clock", &self.clock) .finish() } @@ -3590,7 +3568,7 @@ pub struct GstTask { impl ::std::fmt::Debug for GstTask { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTask @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTask @ {:p}", self)) .field("object", &self.object) .field("state", &self.state) .field("cond", &self.cond) @@ -3613,7 +3591,7 @@ pub struct GstTaskPool { impl ::std::fmt::Debug for GstTaskPool { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTaskPool @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTaskPool @ {:p}", self)) .field("object", &self.object) .finish() } @@ -3629,7 +3607,7 @@ pub struct GstTracer { impl ::std::fmt::Debug for GstTracer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTracer @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTracer @ {:p}", self)) .field("parent", &self.parent) .finish() } @@ -3640,7 +3618,7 @@ pub struct GstTracerFactory(c_void); impl ::std::fmt::Debug for GstTracerFactory { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTracerFactory @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTracerFactory @ {:p}", self)) .finish() } } @@ -3650,7 +3628,7 @@ pub struct GstTracerRecord(c_void); impl ::std::fmt::Debug for GstTracerRecord { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTracerRecord @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTracerRecord @ {:p}", self)) .finish() } } @@ -3660,7 +3638,7 @@ pub struct GstTypeFindFactory(c_void); impl ::std::fmt::Debug for GstTypeFindFactory { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstTypeFindFactory @ {:?}", self as *const _)) + f.debug_struct(&format!("GstTypeFindFactory @ {:p}", self)) .finish() } } @@ -3670,7 +3648,7 @@ pub struct GstValueArray(c_void); impl ::std::fmt::Debug for GstValueArray { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstValueArray @ {:?}", self as *const _)) + f.debug_struct(&format!("GstValueArray @ {:p}", self)) .finish() } } @@ -3680,7 +3658,7 @@ pub struct GstValueList(c_void); impl ::std::fmt::Debug for GstValueList { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("GstValueList @ {:?}", self as *const _)) + f.debug_struct(&format!("GstValueList @ {:p}", self)) .finish() } } @@ -3691,7 +3669,7 @@ pub struct GstChildProxy(c_void); impl ::std::fmt::Debug for GstChildProxy { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GstChildProxy @ {:?}", self as *const _) + write!(f, "GstChildProxy @ {:p}", self) } } @@ -3700,7 +3678,7 @@ pub struct GstPreset(c_void); impl ::std::fmt::Debug for GstPreset { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GstPreset @ {:?}", self as *const _) + write!(f, "GstPreset @ {:p}", self) } } @@ -3709,7 +3687,7 @@ pub struct GstTagSetter(c_void); impl ::std::fmt::Debug for GstTagSetter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GstTagSetter @ {:?}", self as *const _) + write!(f, "GstTagSetter @ {:p}", self) } } @@ -3718,7 +3696,7 @@ pub struct GstTocSetter(c_void); impl ::std::fmt::Debug for GstTocSetter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GstTocSetter @ {:?}", self as *const _) + write!(f, "GstTocSetter @ {:p}", self) } } @@ -3727,7 +3705,7 @@ pub struct GstURIHandler(c_void); impl ::std::fmt::Debug for GstURIHandler { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - write!(f, "GstURIHandler @ {:?}", self as *const _) + write!(f, "GstURIHandler @ {:p}", self) } } diff --git a/gstreamer/sys/tests/abi.rs b/gstreamer/sys/tests/abi.rs index 34d5f734b..bd5fec965 100644 --- a/gstreamer/sys/tests/abi.rs +++ b/gstreamer/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer/sys/tests/constant.c b/gstreamer/sys/tests/constant.c index ced3a5af0..231400da5 100644 --- a/gstreamer/sys/tests/constant.c +++ b/gstreamer/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer/sys/tests/layout.c b/gstreamer/sys/tests/layout.c index 74eadefd9..acf14d5fe 100644 --- a/gstreamer/sys/tests/layout.c +++ b/gstreamer/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 612ed89) +// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT