From 6ab34e1656b9059631ef44021705254d768622bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 22 May 2023 12:15:07 +0300 Subject: [PATCH] Regenerate with latest GStreamer gir files Part-of: --- gstreamer-allocators/src/auto/versions.txt | 2 +- .../sys/src/auto/versions.txt | 2 +- gstreamer-app/src/auto/versions.txt | 2 +- gstreamer-app/sys/src/auto/versions.txt | 2 +- gstreamer-audio/src/auto/versions.txt | 2 +- gstreamer-audio/sys/src/auto/versions.txt | 2 +- gstreamer-base/src/auto/versions.txt | 2 +- gstreamer-base/sys/src/auto/versions.txt | 2 +- gstreamer-check/src/auto/versions.txt | 2 +- gstreamer-check/sys/src/auto/versions.txt | 2 +- gstreamer-controller/src/auto/versions.txt | 2 +- .../sys/src/auto/versions.txt | 2 +- .../src/auto/versions.txt | 2 +- .../sys/src/auto/versions.txt | 2 +- gstreamer-editing-services/sys/src/lib.rs | 65 ++++++ gstreamer-editing-services/sys/tests/abi.rs | 7 + gstreamer-editing-services/sys/tests/layout.c | 1 + gstreamer-gl/egl/src/auto/versions.txt | 2 +- gstreamer-gl/egl/sys/src/auto/versions.txt | 2 +- gstreamer-gl/src/auto/versions.txt | 2 +- gstreamer-gl/sys/src/auto/versions.txt | 2 +- gstreamer-gl/sys/src/lib.rs | 205 ++++++++++++++++++ gstreamer-gl/sys/tests/abi.rs | 56 +++++ gstreamer-gl/sys/tests/layout.c | 8 + gstreamer-gl/wayland/src/auto/versions.txt | 2 +- .../wayland/sys/src/auto/versions.txt | 2 +- gstreamer-gl/x11/src/auto/versions.txt | 2 +- gstreamer-gl/x11/sys/src/auto/versions.txt | 2 +- gstreamer-mpegts/src/auto/versions.txt | 2 +- gstreamer-mpegts/sys/src/auto/versions.txt | 2 +- gstreamer-net/src/auto/versions.txt | 2 +- gstreamer-net/sys/src/auto/versions.txt | 2 +- gstreamer-pbutils/src/auto/discoverer.rs | 36 +++ .../src/auto/discoverer_stream_info.rs | 4 +- gstreamer-pbutils/src/auto/versions.txt | 2 +- gstreamer-pbutils/sys/src/auto/versions.txt | 2 +- gstreamer-pbutils/sys/src/lib.rs | 5 +- gstreamer-play/src/auto/versions.txt | 2 +- gstreamer-play/sys/src/auto/versions.txt | 2 +- gstreamer-player/src/auto/versions.txt | 2 +- gstreamer-player/sys/src/auto/versions.txt | 2 +- gstreamer-rtp/src/auto/versions.txt | 2 +- gstreamer-rtp/sys/src/auto/versions.txt | 2 +- gstreamer-rtsp-server/src/auto/rtsp_media.rs | 15 ++ gstreamer-rtsp-server/src/auto/versions.txt | 2 +- .../sys/src/auto/versions.txt | 2 +- gstreamer-rtsp-server/sys/src/lib.rs | 3 + gstreamer-rtsp/src/auto/versions.txt | 2 +- gstreamer-rtsp/sys/src/auto/versions.txt | 2 +- gstreamer-sdp/src/auto/versions.txt | 2 +- gstreamer-sdp/sys/src/auto/versions.txt | 2 +- gstreamer-sdp/sys/src/lib.rs | 3 + gstreamer-tag/sys/src/auto/versions.txt | 2 +- gstreamer-validate/src/auto/versions.txt | 2 +- gstreamer-validate/sys/src/auto/versions.txt | 2 +- gstreamer-validate/sys/src/lib.rs | 21 ++ gstreamer-validate/sys/tests/abi.rs | 15 ++ gstreamer-validate/sys/tests/constant.c | 2 + gstreamer-validate/sys/tests/layout.c | 1 + gstreamer-video/src/auto/versions.txt | 2 +- gstreamer-video/sys/src/auto/versions.txt | 2 +- gstreamer-webrtc/src/auto/versions.txt | 2 +- gstreamer-webrtc/sys/src/auto/versions.txt | 2 +- gstreamer/src/auto/versions.txt | 2 +- gstreamer/sys/src/auto/versions.txt | 2 +- gstreamer/sys/src/lib.rs | 5 +- 66 files changed, 497 insertions(+), 53 deletions(-) diff --git a/gstreamer-allocators/src/auto/versions.txt b/gstreamer-allocators/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-allocators/src/auto/versions.txt +++ b/gstreamer-allocators/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-allocators/sys/src/auto/versions.txt b/gstreamer-allocators/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-allocators/sys/src/auto/versions.txt +++ b/gstreamer-allocators/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-app/sys/src/auto/versions.txt b/gstreamer-app/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-app/sys/src/auto/versions.txt +++ b/gstreamer-app/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-audio/sys/src/auto/versions.txt b/gstreamer-audio/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-audio/sys/src/auto/versions.txt +++ b/gstreamer-audio/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-base/sys/src/auto/versions.txt b/gstreamer-base/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-base/sys/src/auto/versions.txt +++ b/gstreamer-base/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-check/src/auto/versions.txt b/gstreamer-check/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-check/sys/src/auto/versions.txt b/gstreamer-check/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-check/sys/src/auto/versions.txt +++ b/gstreamer-check/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-controller/src/auto/versions.txt b/gstreamer-controller/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-controller/sys/src/auto/versions.txt b/gstreamer-controller/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-controller/sys/src/auto/versions.txt +++ b/gstreamer-controller/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-editing-services/src/auto/versions.txt b/gstreamer-editing-services/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-editing-services/sys/src/auto/versions.txt b/gstreamer-editing-services/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-editing-services/sys/src/auto/versions.txt +++ b/gstreamer-editing-services/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-editing-services/sys/src/lib.rs b/gstreamer-editing-services/sys/src/lib.rs index e24c7ec82..3d84bb9be 100644 --- a/gstreamer-editing-services/sys/src/lib.rs +++ b/gstreamer-editing-services/sys/src/lib.rs @@ -700,6 +700,28 @@ pub struct _GESContainerPrivate { pub type GESContainerPrivate = *mut _GESContainerPrivate; +#[derive(Copy, Clone)] +#[repr(C)] +pub struct GESDiscovererManagerClass { + pub parent_class: gobject::GObjectClass, +} + +impl ::std::fmt::Debug for GESDiscovererManagerClass { + fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { + f.debug_struct(&format!("GESDiscovererManagerClass @ {self:p}")) + .field("parent_class", &self.parent_class) + .finish() + } +} + +#[repr(C)] +pub struct _GESDiscovererManagerPrivate { + _data: [u8; 0], + _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, +} + +pub type GESDiscovererManagerPrivate = *mut _GESDiscovererManagerPrivate; + #[derive(Copy, Clone)] #[repr(C)] pub struct GESEffectAssetClass { @@ -2100,6 +2122,19 @@ impl ::std::fmt::Debug for GESContainer { } } +#[repr(C)] +pub struct GESDiscovererManager { + _data: [u8; 0], + _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, +} + +impl ::std::fmt::Debug for GESDiscovererManager { + fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { + f.debug_struct(&format!("GESDiscovererManager @ {self:p}")) + .finish() + } +} + #[derive(Copy, Clone)] #[repr(C)] pub struct GESEffect { @@ -3150,6 +3185,36 @@ extern "C" { recursive: gboolean, ) -> *mut glib::GList; + //========================================================================= + // GESDiscovererManager + //========================================================================= + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn ges_discoverer_manager_get_type() -> GType; + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn ges_discoverer_manager_get_default() -> *mut GESDiscovererManager; + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn ges_discoverer_manager_get_timeout( + self_: *mut GESDiscovererManager, + ) -> gst::GstClockTime; + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn ges_discoverer_manager_get_use_cache(self_: *mut GESDiscovererManager) -> gboolean; + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn ges_discoverer_manager_set_timeout( + self_: *mut GESDiscovererManager, + timeout: gst::GstClockTime, + ); + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn ges_discoverer_manager_set_use_cache( + self_: *mut GESDiscovererManager, + use_cache: gboolean, + ); + //========================================================================= // GESEffect //========================================================================= diff --git a/gstreamer-editing-services/sys/tests/abi.rs b/gstreamer-editing-services/sys/tests/abi.rs index 9b0432c41..8b15a3f51 100644 --- a/gstreamer-editing-services/sys/tests/abi.rs +++ b/gstreamer-editing-services/sys/tests/abi.rs @@ -408,6 +408,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), + ( + "GESDiscovererManagerClass", + Layout { + size: size_of::(), + alignment: align_of::(), + }, + ), ( "GESEdge", Layout { diff --git a/gstreamer-editing-services/sys/tests/layout.c b/gstreamer-editing-services/sys/tests/layout.c index 9c8083144..f27b50880 100644 --- a/gstreamer-editing-services/sys/tests/layout.c +++ b/gstreamer-editing-services/sys/tests/layout.c @@ -38,6 +38,7 @@ int main() { printf("%s;%zu;%zu\n", "GESCommandLineFormatterClass", sizeof(GESCommandLineFormatterClass), alignof(GESCommandLineFormatterClass)); printf("%s;%zu;%zu\n", "GESContainer", sizeof(GESContainer), alignof(GESContainer)); printf("%s;%zu;%zu\n", "GESContainerClass", sizeof(GESContainerClass), alignof(GESContainerClass)); + printf("%s;%zu;%zu\n", "GESDiscovererManagerClass", sizeof(GESDiscovererManagerClass), alignof(GESDiscovererManagerClass)); printf("%s;%zu;%zu\n", "GESEdge", sizeof(GESEdge), alignof(GESEdge)); printf("%s;%zu;%zu\n", "GESEditMode", sizeof(GESEditMode), alignof(GESEditMode)); printf("%s;%zu;%zu\n", "GESEffect", sizeof(GESEffect), alignof(GESEffect)); diff --git a/gstreamer-gl/egl/src/auto/versions.txt b/gstreamer-gl/egl/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-gl/egl/sys/src/auto/versions.txt b/gstreamer-gl/egl/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-gl/egl/sys/src/auto/versions.txt +++ b/gstreamer-gl/egl/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-gl/src/auto/versions.txt b/gstreamer-gl/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-gl/sys/src/auto/versions.txt b/gstreamer-gl/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-gl/sys/src/auto/versions.txt +++ b/gstreamer-gl/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-gl/sys/src/lib.rs b/gstreamer-gl/sys/src/lib.rs index 349343bf3..bcdcbf7ab 100644 --- a/gstreamer-gl/sys/src/lib.rs +++ b/gstreamer-gl/sys/src/lib.rs @@ -402,6 +402,50 @@ impl ::std::fmt::Debug for GstGLBaseMemoryAllocatorClass { } } +#[derive(Copy, Clone)] +#[repr(C)] +pub struct GstGLBaseMixerClass { + pub parent_class: gst_video::GstVideoAggregatorClass, + pub supported_gl_api: GstGLAPI, + pub gl_start: Option gboolean>, + pub gl_stop: Option, + pub _padding: [gpointer; 4], +} + +impl ::std::fmt::Debug for GstGLBaseMixerClass { + fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { + f.debug_struct(&format!("GstGLBaseMixerClass @ {self:p}")) + .field("parent_class", &self.parent_class) + .field("supported_gl_api", &self.supported_gl_api) + .field("gl_start", &self.gl_start) + .field("gl_stop", &self.gl_stop) + .finish() + } +} + +#[derive(Copy, Clone)] +#[repr(C)] +pub struct GstGLBaseMixerPadClass { + pub parent_class: gst_video::GstVideoAggregatorPadClass, + pub _padding: [gpointer; 4], +} + +impl ::std::fmt::Debug for GstGLBaseMixerPadClass { + fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { + f.debug_struct(&format!("GstGLBaseMixerPadClass @ {self:p}")) + .field("parent_class", &self.parent_class) + .finish() + } +} + +#[repr(C)] +pub struct _GstGLBaseMixerPrivate { + _data: [u8; 0], + _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, +} + +pub type GstGLBaseMixerPrivate = *mut _GstGLBaseMixerPrivate; + #[derive(Copy, Clone)] #[repr(C)] pub struct GstGLBaseSrcClass { @@ -778,6 +822,50 @@ impl ::std::fmt::Debug for GstGLMemoryPBOAllocatorClass { } } +#[derive(Copy, Clone)] +#[repr(C)] +pub struct GstGLMixerClass { + pub parent_class: GstGLBaseMixerClass, + pub process_buffers: + Option gboolean>, + pub process_textures: + Option gboolean>, + pub _padding: [gpointer; 4], +} + +impl ::std::fmt::Debug for GstGLMixerClass { + fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { + f.debug_struct(&format!("GstGLMixerClass @ {self:p}")) + .field("parent_class", &self.parent_class) + .field("process_buffers", &self.process_buffers) + .field("process_textures", &self.process_textures) + .finish() + } +} + +#[derive(Copy, Clone)] +#[repr(C)] +pub struct GstGLMixerPadClass { + pub parent_class: GstGLBaseMixerPadClass, + pub _padding: [gpointer; 4], +} + +impl ::std::fmt::Debug for GstGLMixerPadClass { + fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { + f.debug_struct(&format!("GstGLMixerPadClass @ {self:p}")) + .field("parent_class", &self.parent_class) + .finish() + } +} + +#[repr(C)] +pub struct _GstGLMixerPrivate { + _data: [u8; 0], + _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, +} + +pub type GstGLMixerPrivate = *mut _GstGLMixerPrivate; + #[derive(Copy, Clone)] #[repr(C)] pub struct GstGLOverlayCompositorClass { @@ -1126,6 +1214,41 @@ impl ::std::fmt::Debug for GstGLBaseMemoryAllocator { } } +#[derive(Copy, Clone)] +#[repr(C)] +pub struct GstGLBaseMixer { + pub parent: gst_video::GstVideoAggregator, + pub display: *mut GstGLDisplay, + pub context: *mut GstGLContext, + pub _padding: [gpointer; 4], + pub priv_: *mut GstGLBaseMixerPrivate, +} + +impl ::std::fmt::Debug for GstGLBaseMixer { + fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { + f.debug_struct(&format!("GstGLBaseMixer @ {self:p}")) + .field("parent", &self.parent) + .field("display", &self.display) + .field("context", &self.context) + .finish() + } +} + +#[derive(Copy, Clone)] +#[repr(C)] +pub struct GstGLBaseMixerPad { + pub parent: gst_video::GstVideoAggregatorPad, + pub _padding: [gpointer; 4], +} + +impl ::std::fmt::Debug for GstGLBaseMixerPad { + fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { + f.debug_struct(&format!("GstGLBaseMixerPad @ {self:p}")) + .field("parent", &self.parent) + .finish() + } +} + #[derive(Copy, Clone)] #[repr(C)] pub struct GstGLBaseSrc { @@ -1330,6 +1453,41 @@ impl ::std::fmt::Debug for GstGLMemoryPBOAllocator { } } +#[derive(Copy, Clone)] +#[repr(C)] +pub struct GstGLMixer { + pub parent: GstGLBaseMixer, + pub out_caps: *mut gst::GstCaps, + pub priv_: *mut GstGLMixerPrivate, + pub _padding: [gpointer; 4], +} + +impl ::std::fmt::Debug for GstGLMixer { + fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { + f.debug_struct(&format!("GstGLMixer @ {self:p}")) + .field("parent", &self.parent) + .field("out_caps", &self.out_caps) + .finish() + } +} + +#[derive(Copy, Clone)] +#[repr(C)] +pub struct GstGLMixerPad { + pub parent: GstGLBaseMixerPad, + pub current_texture: c_uint, + pub _padding: [gpointer; 4], +} + +impl ::std::fmt::Debug for GstGLMixerPad { + fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { + f.debug_struct(&format!("GstGLMixerPad @ {self:p}")) + .field("parent", &self.parent) + .field("current_texture", &self.current_texture) + .finish() + } +} + #[derive(Copy, Clone)] #[repr(C)] pub struct GstGLOverlayCompositor { @@ -1807,6 +1965,13 @@ extern "C" { pub fn gst_gl_memory_pbo_upload_transfer(gl_mem: *mut GstGLMemoryPBO); pub fn gst_gl_memory_pbo_init_once(); + //========================================================================= + // GstGLMixerClass + //========================================================================= + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn gst_gl_mixer_class_add_rgba_pad_templates(klass: *mut GstGLMixerClass); + //========================================================================= // GstGLQuery //========================================================================= @@ -1965,6 +2130,23 @@ extern "C" { //========================================================================= pub fn gst_gl_base_memory_allocator_get_type() -> GType; + //========================================================================= + // GstGLBaseMixer + //========================================================================= + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn gst_gl_base_mixer_get_type() -> GType; + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn gst_gl_base_mixer_get_gl_context(mix: *mut GstGLBaseMixer) -> *mut GstGLContext; + + //========================================================================= + // GstGLBaseMixerPad + //========================================================================= + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn gst_gl_base_mixer_pad_get_type() -> GType; + //========================================================================= // GstGLBaseSrc //========================================================================= @@ -2261,6 +2443,29 @@ extern "C" { //========================================================================= pub fn gst_gl_memory_pbo_allocator_get_type() -> GType; + //========================================================================= + // GstGLMixer + //========================================================================= + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn gst_gl_mixer_get_type() -> GType; + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn gst_gl_mixer_get_framebuffer(mix: *mut GstGLMixer) -> *mut GstGLFramebuffer; + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn gst_gl_mixer_process_textures( + mix: *mut GstGLMixer, + outbuf: *mut gst::GstBuffer, + ) -> gboolean; + + //========================================================================= + // GstGLMixerPad + //========================================================================= + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn gst_gl_mixer_pad_get_type() -> GType; + //========================================================================= // GstGLOverlayCompositor //========================================================================= diff --git a/gstreamer-gl/sys/tests/abi.rs b/gstreamer-gl/sys/tests/abi.rs index a753a5e3a..14a858f25 100644 --- a/gstreamer-gl/sys/tests/abi.rs +++ b/gstreamer-gl/sys/tests/abi.rs @@ -268,6 +268,34 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), + ( + "GstGLBaseMixer", + Layout { + size: size_of::(), + alignment: align_of::(), + }, + ), + ( + "GstGLBaseMixerClass", + Layout { + size: size_of::(), + alignment: align_of::(), + }, + ), + ( + "GstGLBaseMixerPad", + Layout { + size: size_of::(), + alignment: align_of::(), + }, + ), + ( + "GstGLBaseMixerPadClass", + Layout { + size: size_of::(), + alignment: align_of::(), + }, + ), ( "GstGLBaseSrc", Layout { @@ -471,6 +499,34 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), + ( + "GstGLMixer", + Layout { + size: size_of::(), + alignment: align_of::(), + }, + ), + ( + "GstGLMixerClass", + Layout { + size: size_of::(), + alignment: align_of::(), + }, + ), + ( + "GstGLMixerPad", + Layout { + size: size_of::(), + alignment: align_of::(), + }, + ), + ( + "GstGLMixerPadClass", + Layout { + size: size_of::(), + alignment: align_of::(), + }, + ), ( "GstGLOverlayCompositor", Layout { diff --git a/gstreamer-gl/sys/tests/layout.c b/gstreamer-gl/sys/tests/layout.c index cdbd6c976..96566f3be 100644 --- a/gstreamer-gl/sys/tests/layout.c +++ b/gstreamer-gl/sys/tests/layout.c @@ -18,6 +18,10 @@ int main() { printf("%s;%zu;%zu\n", "GstGLBaseMemoryAllocatorClass", sizeof(GstGLBaseMemoryAllocatorClass), alignof(GstGLBaseMemoryAllocatorClass)); printf("%s;%zu;%zu\n", "GstGLBaseMemoryError", sizeof(GstGLBaseMemoryError), alignof(GstGLBaseMemoryError)); printf("%s;%zu;%zu\n", "GstGLBaseMemoryTransfer", sizeof(GstGLBaseMemoryTransfer), alignof(GstGLBaseMemoryTransfer)); + printf("%s;%zu;%zu\n", "GstGLBaseMixer", sizeof(GstGLBaseMixer), alignof(GstGLBaseMixer)); + printf("%s;%zu;%zu\n", "GstGLBaseMixerClass", sizeof(GstGLBaseMixerClass), alignof(GstGLBaseMixerClass)); + printf("%s;%zu;%zu\n", "GstGLBaseMixerPad", sizeof(GstGLBaseMixerPad), alignof(GstGLBaseMixerPad)); + printf("%s;%zu;%zu\n", "GstGLBaseMixerPadClass", sizeof(GstGLBaseMixerPadClass), alignof(GstGLBaseMixerPadClass)); printf("%s;%zu;%zu\n", "GstGLBaseSrc", sizeof(GstGLBaseSrc), alignof(GstGLBaseSrc)); printf("%s;%zu;%zu\n", "GstGLBaseSrcClass", sizeof(GstGLBaseSrcClass), alignof(GstGLBaseSrcClass)); printf("%s;%zu;%zu\n", "GstGLBuffer", sizeof(GstGLBuffer), alignof(GstGLBuffer)); @@ -47,6 +51,10 @@ int main() { printf("%s;%zu;%zu\n", "GstGLMemoryPBO", sizeof(GstGLMemoryPBO), alignof(GstGLMemoryPBO)); printf("%s;%zu;%zu\n", "GstGLMemoryPBOAllocator", sizeof(GstGLMemoryPBOAllocator), alignof(GstGLMemoryPBOAllocator)); printf("%s;%zu;%zu\n", "GstGLMemoryPBOAllocatorClass", sizeof(GstGLMemoryPBOAllocatorClass), alignof(GstGLMemoryPBOAllocatorClass)); + printf("%s;%zu;%zu\n", "GstGLMixer", sizeof(GstGLMixer), alignof(GstGLMixer)); + printf("%s;%zu;%zu\n", "GstGLMixerClass", sizeof(GstGLMixerClass), alignof(GstGLMixerClass)); + printf("%s;%zu;%zu\n", "GstGLMixerPad", sizeof(GstGLMixerPad), alignof(GstGLMixerPad)); + printf("%s;%zu;%zu\n", "GstGLMixerPadClass", sizeof(GstGLMixerPadClass), alignof(GstGLMixerPadClass)); printf("%s;%zu;%zu\n", "GstGLOverlayCompositor", sizeof(GstGLOverlayCompositor), alignof(GstGLOverlayCompositor)); printf("%s;%zu;%zu\n", "GstGLOverlayCompositorClass", sizeof(GstGLOverlayCompositorClass), alignof(GstGLOverlayCompositorClass)); printf("%s;%zu;%zu\n", "GstGLPlatform", sizeof(GstGLPlatform), alignof(GstGLPlatform)); diff --git a/gstreamer-gl/wayland/src/auto/versions.txt b/gstreamer-gl/wayland/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-gl/wayland/sys/src/auto/versions.txt b/gstreamer-gl/wayland/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-gl/wayland/sys/src/auto/versions.txt +++ b/gstreamer-gl/wayland/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-gl/x11/src/auto/versions.txt b/gstreamer-gl/x11/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-gl/x11/sys/src/auto/versions.txt b/gstreamer-gl/x11/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-gl/x11/sys/src/auto/versions.txt +++ b/gstreamer-gl/x11/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-mpegts/src/auto/versions.txt b/gstreamer-mpegts/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-mpegts/src/auto/versions.txt +++ b/gstreamer-mpegts/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-mpegts/sys/src/auto/versions.txt b/gstreamer-mpegts/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-mpegts/sys/src/auto/versions.txt +++ b/gstreamer-mpegts/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-net/sys/src/auto/versions.txt b/gstreamer-net/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-net/sys/src/auto/versions.txt +++ b/gstreamer-net/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-pbutils/src/auto/discoverer.rs b/gstreamer-pbutils/src/auto/discoverer.rs index 0f310dfae..093806c7f 100644 --- a/gstreamer-pbutils/src/auto/discoverer.rs +++ b/gstreamer-pbutils/src/auto/discoverer.rs @@ -149,6 +149,42 @@ impl Discoverer { } } + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + #[doc(alias = "load-serialized-info")] + pub fn connect_load_serialized_info< + F: Fn(&Self, &str) -> Option + Send + Sync + 'static, + >( + &self, + f: F, + ) -> SignalHandlerId { + unsafe extern "C" fn load_serialized_info_trampoline< + F: Fn(&Discoverer, &str) -> Option + Send + Sync + 'static, + >( + this: *mut ffi::GstDiscoverer, + uri: *mut libc::c_char, + f: glib::ffi::gpointer, + ) -> *mut ffi::GstDiscovererInfo { + let f: &F = &*(f as *const F); + f( + &from_glib_borrow(this), + &glib::GString::from_glib_borrow(uri), + ) + .to_glib_full() + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw( + self.as_ptr() as *mut _, + b"load-serialized-info\0".as_ptr() as *const _, + Some(transmute::<_, unsafe extern "C" fn()>( + load_serialized_info_trampoline:: as *const (), + )), + Box_::into_raw(f), + ) + } + } + #[doc(alias = "source-setup")] pub fn connect_source_setup( &self, diff --git a/gstreamer-pbutils/src/auto/discoverer_stream_info.rs b/gstreamer-pbutils/src/auto/discoverer_stream_info.rs index 4c9c048cc..d72b236c8 100644 --- a/gstreamer-pbutils/src/auto/discoverer_stream_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_stream_info.rs @@ -42,7 +42,7 @@ pub trait DiscovererStreamInfoExt: 'static { #[doc(alias = "gst_discoverer_stream_info_get_stream_id")] #[doc(alias = "get_stream_id")] - fn stream_id(&self) -> glib::GString; + fn stream_id(&self) -> Option; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] @@ -96,7 +96,7 @@ impl> DiscovererStreamInfoExt for O { } } - fn stream_id(&self) -> glib::GString { + fn stream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_stream_info_get_stream_id( self.as_ref().to_glib_none().0, diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-pbutils/sys/src/auto/versions.txt b/gstreamer-pbutils/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-pbutils/sys/src/auto/versions.txt +++ b/gstreamer-pbutils/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-pbutils/sys/src/lib.rs b/gstreamer-pbutils/sys/src/lib.rs index 0047430f2..ada2a72c2 100644 --- a/gstreamer-pbutils/sys/src/lib.rs +++ b/gstreamer-pbutils/sys/src/lib.rs @@ -147,7 +147,9 @@ pub struct GstDiscovererClass { unsafe extern "C" fn(*mut GstDiscoverer, *mut GstDiscovererInfo, *const glib::GError), >, pub source_setup: Option, - pub _reserved: [gpointer; 4], + pub load_serialize_info: + Option *mut GstDiscovererInfo>, + pub _reserved: [gpointer; 3], } impl ::std::fmt::Debug for GstDiscovererClass { @@ -158,6 +160,7 @@ impl ::std::fmt::Debug for GstDiscovererClass { .field("starting", &self.starting) .field("discovered", &self.discovered) .field("source_setup", &self.source_setup) + .field("load_serialize_info", &self.load_serialize_info) .field("_reserved", &self._reserved) .finish() } diff --git a/gstreamer-play/src/auto/versions.txt b/gstreamer-play/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-play/src/auto/versions.txt +++ b/gstreamer-play/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-play/sys/src/auto/versions.txt b/gstreamer-play/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-play/sys/src/auto/versions.txt +++ b/gstreamer-play/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-player/sys/src/auto/versions.txt b/gstreamer-player/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-player/sys/src/auto/versions.txt +++ b/gstreamer-player/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-rtp/src/auto/versions.txt b/gstreamer-rtp/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-rtp/sys/src/auto/versions.txt b/gstreamer-rtp/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-rtp/sys/src/auto/versions.txt +++ b/gstreamer-rtp/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_media.rs index 12dc095f3..f8dbeaffc 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media.rs @@ -40,6 +40,11 @@ unsafe impl Send for RTSPMedia {} unsafe impl Sync for RTSPMedia {} pub trait RTSPMediaExt: 'static { + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + #[doc(alias = "gst_rtsp_media_can_be_shared")] + fn can_be_shared(&self) -> bool; + #[doc(alias = "gst_rtsp_media_collect_streams")] fn collect_streams(&self); @@ -459,6 +464,16 @@ pub trait RTSPMediaExt: 'static { } impl> RTSPMediaExt for O { + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + fn can_be_shared(&self) -> bool { + unsafe { + from_glib(ffi::gst_rtsp_media_can_be_shared( + self.as_ref().to_glib_none().0, + )) + } + } + fn collect_streams(&self) { unsafe { ffi::gst_rtsp_media_collect_streams(self.as_ref().to_glib_none().0); diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-rtsp-server/sys/src/auto/versions.txt b/gstreamer-rtsp-server/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-rtsp-server/sys/src/auto/versions.txt +++ b/gstreamer-rtsp-server/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-rtsp-server/sys/src/lib.rs b/gstreamer-rtsp-server/sys/src/lib.rs index 97661418b..f6baafb3a 100644 --- a/gstreamer-rtsp-server/sys/src/lib.rs +++ b/gstreamer-rtsp-server/sys/src/lib.rs @@ -1567,6 +1567,9 @@ extern "C" { //========================================================================= pub fn gst_rtsp_media_get_type() -> GType; pub fn gst_rtsp_media_new(element: *mut gst::GstElement) -> *mut GstRTSPMedia; + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn gst_rtsp_media_can_be_shared(media: *mut GstRTSPMedia) -> gboolean; pub fn gst_rtsp_media_collect_streams(media: *mut GstRTSPMedia); pub fn gst_rtsp_media_complete_pipeline( media: *mut GstRTSPMedia, diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-rtsp/sys/src/auto/versions.txt b/gstreamer-rtsp/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-rtsp/sys/src/auto/versions.txt +++ b/gstreamer-rtsp/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-sdp/sys/src/auto/versions.txt b/gstreamer-sdp/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-sdp/sys/src/auto/versions.txt +++ b/gstreamer-sdp/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-sdp/sys/src/lib.rs b/gstreamer-sdp/sys/src/lib.rs index b79cb27f6..d83018c8a 100644 --- a/gstreamer-sdp/sys/src/lib.rs +++ b/gstreamer-sdp/sys/src/lib.rs @@ -1018,6 +1018,9 @@ extern "C" { pub fn gst_sdp_message_remove_attribute(msg: *mut GstSDPMessage, idx: c_uint) -> GstSDPResult; pub fn gst_sdp_message_remove_bandwidth(msg: *mut GstSDPMessage, idx: c_uint) -> GstSDPResult; pub fn gst_sdp_message_remove_email(msg: *mut GstSDPMessage, idx: c_uint) -> GstSDPResult; + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn gst_sdp_message_remove_media(msg: *mut GstSDPMessage, idx: c_uint) -> GstSDPResult; pub fn gst_sdp_message_remove_phone(msg: *mut GstSDPMessage, idx: c_uint) -> GstSDPResult; pub fn gst_sdp_message_remove_time(msg: *mut GstSDPMessage, idx: c_uint) -> GstSDPResult; pub fn gst_sdp_message_remove_zone(msg: *mut GstSDPMessage, idx: c_uint) -> GstSDPResult; diff --git a/gstreamer-tag/sys/src/auto/versions.txt b/gstreamer-tag/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-tag/sys/src/auto/versions.txt +++ b/gstreamer-tag/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-validate/src/auto/versions.txt b/gstreamer-validate/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-validate/src/auto/versions.txt +++ b/gstreamer-validate/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-validate/sys/src/auto/versions.txt b/gstreamer-validate/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-validate/sys/src/auto/versions.txt +++ b/gstreamer-validate/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-validate/sys/src/lib.rs b/gstreamer-validate/sys/src/lib.rs index 395f0a121..efc29867e 100644 --- a/gstreamer-validate/sys/src/lib.rs +++ b/gstreamer-validate/sys/src/lib.rs @@ -104,6 +104,11 @@ pub const GST_VALIDATE_MEDIA_DESCRIPTOR_WRITER_FLAGS_FULL: GstValidateMediaDescr pub const GST_VALIDATE_MEDIA_DESCRIPTOR_WRITER_FLAGS_HANDLE_GLOGS: GstValidateMediaDescriptorWriterFlags = 8; +pub type GstValidateObjectSetPropertyFlags = c_uint; +pub const GST_VALIDATE_OBJECT_SET_PROPERTY_FLAGS_OPTIONAL: GstValidateObjectSetPropertyFlags = 1; +pub const GST_VALIDATE_OBJECT_SET_PROPERTY_FLAGS_NO_VALUE_CHECK: GstValidateObjectSetPropertyFlags = + 2; + pub type GstValidateStructureResolveVariablesFlags = c_uint; pub const GST_VALIDATE_STRUCTURE_RESOLVE_VARIABLES_ALL: GstValidateStructureResolveVariablesFlags = 0; @@ -997,6 +1002,13 @@ extern "C" { //========================================================================= pub fn gst_validate_media_descriptor_writer_flags_get_type() -> GType; + //========================================================================= + // GstValidateObjectSetPropertyFlags + //========================================================================= + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn gst_validate_object_set_property_flags_get_type() -> GType; + //========================================================================= // GstValidateStructureResolveVariablesFlags //========================================================================= @@ -1570,6 +1582,15 @@ extern "C" { value: *const gobject::GValue, optional: gboolean, ) -> GstValidateActionReturn; + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn gst_validate_object_set_property_full( + reporter: *mut GstValidateReporter, + object: *mut gobject::GObject, + property: *const c_char, + value: *const gobject::GValue, + flags: GstValidateObjectSetPropertyFlags, + ) -> GstValidateActionReturn; pub fn gst_validate_plugin_get_config(plugin: *mut gst::GstPlugin) -> *mut glib::GList; pub fn gst_validate_print_action(action: *mut GstValidateAction, message: *const c_char); pub fn gst_validate_print_action_types( diff --git a/gstreamer-validate/sys/tests/abi.rs b/gstreamer-validate/sys/tests/abi.rs index c6484c4ba..1ecac6111 100644 --- a/gstreamer-validate/sys/tests/abi.rs +++ b/gstreamer-validate/sys/tests/abi.rs @@ -366,6 +366,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), + ( + "GstValidateObjectSetPropertyFlags", + Layout { + size: size_of::(), + alignment: align_of::(), + }, + ), ( "GstValidateOverride", Layout { @@ -542,6 +549,14 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ "(guint) GST_VALIDATE_MEDIA_DESCRIPTOR_WRITER_FLAGS_NO_PARSER", "2", ), + ( + "(guint) GST_VALIDATE_OBJECT_SET_PROPERTY_FLAGS_NO_VALUE_CHECK", + "2", + ), + ( + "(guint) GST_VALIDATE_OBJECT_SET_PROPERTY_FLAGS_OPTIONAL", + "1", + ), ("(guint) GST_VALIDATE_PRINT_CRITICALS", "32"), ("(guint) GST_VALIDATE_PRINT_ISSUES", "8"), ("(guint) GST_VALIDATE_PRINT_WARNINGS", "16"), diff --git a/gstreamer-validate/sys/tests/constant.c b/gstreamer-validate/sys/tests/constant.c index cc23e7f15..61ba88cfa 100644 --- a/gstreamer-validate/sys/tests/constant.c +++ b/gstreamer-validate/sys/tests/constant.c @@ -62,6 +62,8 @@ int main() { PRINT_CONSTANT((guint) GST_VALIDATE_MEDIA_DESCRIPTOR_WRITER_FLAGS_HANDLE_GLOGS); PRINT_CONSTANT((guint) GST_VALIDATE_MEDIA_DESCRIPTOR_WRITER_FLAGS_NONE); PRINT_CONSTANT((guint) GST_VALIDATE_MEDIA_DESCRIPTOR_WRITER_FLAGS_NO_PARSER); + PRINT_CONSTANT((guint) GST_VALIDATE_OBJECT_SET_PROPERTY_FLAGS_NO_VALUE_CHECK); + PRINT_CONSTANT((guint) GST_VALIDATE_OBJECT_SET_PROPERTY_FLAGS_OPTIONAL); PRINT_CONSTANT((guint) GST_VALIDATE_PRINT_CRITICALS); PRINT_CONSTANT((guint) GST_VALIDATE_PRINT_ISSUES); PRINT_CONSTANT((guint) GST_VALIDATE_PRINT_WARNINGS); diff --git a/gstreamer-validate/sys/tests/layout.c b/gstreamer-validate/sys/tests/layout.c index e5349c816..2e2e84082 100644 --- a/gstreamer-validate/sys/tests/layout.c +++ b/gstreamer-validate/sys/tests/layout.c @@ -32,6 +32,7 @@ int main() { printf("%s;%zu;%zu\n", "GstValidateMediaInfo", sizeof(GstValidateMediaInfo), alignof(GstValidateMediaInfo)); printf("%s;%zu;%zu\n", "GstValidateMonitor", sizeof(GstValidateMonitor), alignof(GstValidateMonitor)); printf("%s;%zu;%zu\n", "GstValidateMonitorClass", sizeof(GstValidateMonitorClass), alignof(GstValidateMonitorClass)); + printf("%s;%zu;%zu\n", "GstValidateObjectSetPropertyFlags", sizeof(GstValidateObjectSetPropertyFlags), alignof(GstValidateObjectSetPropertyFlags)); printf("%s;%zu;%zu\n", "GstValidateOverride", sizeof(GstValidateOverride), alignof(GstValidateOverride)); printf("%s;%zu;%zu\n", "GstValidateOverrideClass", sizeof(GstValidateOverrideClass), alignof(GstValidateOverrideClass)); printf("%s;%zu;%zu\n", "GstValidateOverrideRegistry", sizeof(GstValidateOverrideRegistry), alignof(GstValidateOverrideRegistry)); diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-video/sys/src/auto/versions.txt b/gstreamer-video/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-video/sys/src/auto/versions.txt +++ b/gstreamer-video/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer-webrtc/sys/src/auto/versions.txt b/gstreamer-webrtc/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer-webrtc/sys/src/auto/versions.txt +++ b/gstreamer-webrtc/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index f606c95a2..d7adfc907 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 @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer/sys/src/auto/versions.txt b/gstreamer/sys/src/auto/versions.txt index f606c95a2..d7adfc907 100644 --- a/gstreamer/sys/src/auto/versions.txt +++ b/gstreamer/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ Generated by gir (https://github.com/gtk-rs/gir @ 719372782330) from gir-files (https://github.com/gtk-rs/gir-files @ 1254daed0202) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 059d2f604836) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ d6ac1b77b11e) diff --git a/gstreamer/sys/src/lib.rs b/gstreamer/sys/src/lib.rs index 61bf20f3c..04b6b84c5 100644 --- a/gstreamer/sys/src/lib.rs +++ b/gstreamer/sys/src/lib.rs @@ -6225,7 +6225,7 @@ extern "C" { ) -> *mut GstSample; #[cfg(feature = "v1_18_3")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] - pub fn gst_sample_copy(buf: *const GstSample) -> *mut GstSample; + pub fn gst_sample_copy(sample: *const GstSample) -> *mut GstSample; pub fn gst_sample_get_buffer(sample: *mut GstSample) -> *mut GstBuffer; pub fn gst_sample_get_buffer_list(sample: *mut GstSample) -> *mut GstBufferList; pub fn gst_sample_get_caps(sample: *mut GstSample) -> *mut GstCaps; @@ -8844,6 +8844,9 @@ extern "C" { #[cfg(feature = "v1_18_3")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18_3")))] pub fn gst_clear_query(query_ptr: *mut *mut GstQuery); + #[cfg(feature = "v1_24")] + #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] + pub fn gst_clear_sample(sample_ptr: *mut *mut GstSample); #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_clear_structure(structure_ptr: *mut *mut GstStructure);