diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c05ea1098..aade1d434 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -463,7 +463,7 @@ doc-stripping: extends: .img-nightly stage: 'extras' script: - - PATH=~/.cargo/bin/:$PATH ./generator.py --strip-docs --no-fmt + - PATH=~/.cargo/bin/:$PATH ./generator.py --gir-files-directories gir-files gst-gir-files --strip-docs --no-fmt - git diff --quiet || (echo 'Files changed after running `rustdoc-stripper -s`, make sure all documentation is protected with `// rustdoc-stripper-ignore-next`!'; git diff; false) docs: @@ -475,7 +475,7 @@ docs: - curl --proto '=https' --tlsv1.2 -sSf -o gir-rustdoc.py https://gitlab.gnome.org/World/Rust/gir-rustdoc/-/raw/main/gir-rustdoc.py - chmod +x gir-rustdoc.py - - PATH=~/.cargo/bin/:$PATH ./generator.py --embed-docs --no-fmt + - PATH=~/.cargo/bin/:$PATH ./generator.py --gir-files-directories gir-files gst-gir-files --embed-docs --no-fmt - | RUSTDOCFLAGS="$RUST_DOCS_FLAGS" eval $(./gir-rustdoc.py pre-docs) diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index abdf7b075..8bc0959e9 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -3,6 +3,9 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +use glib::object::ObjectExt; use glib::object::ObjectType as ObjectType_; use glib::signal::connect_raw; use glib::signal::SignalHandlerId; @@ -63,6 +66,13 @@ impl AppSink { unsafe { from_glib(ffi::gst_app_sink_is_eos(self.to_glib_none().0)) } } + //#[cfg(any(feature = "v1_20", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + //#[doc(alias = "gst_app_sink_pull_object")] + //pub fn pull_object(&self) -> /*Ignored*/Option { + // unsafe { TODO: call ffi:gst_app_sink_pull_object() } + //} + #[doc(alias = "gst_app_sink_pull_preroll")] pub fn pull_preroll(&self) -> Result { unsafe { @@ -124,6 +134,13 @@ impl AppSink { } } + //#[cfg(any(feature = "v1_20", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + //#[doc(alias = "gst_app_sink_try_pull_object")] + //pub fn try_pull_object(&self, timeout: impl Into>) -> /*Ignored*/Option { + // unsafe { TODO: call ffi:gst_app_sink_try_pull_object() } + //} + #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(alias = "gst_app_sink_try_pull_preroll")] @@ -180,6 +197,42 @@ impl AppSink { } } + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "new-serialized-event")] + pub fn connect_new_serialized_event bool + Send + Sync + 'static>( + &self, + f: F, + ) -> SignalHandlerId { + unsafe extern "C" fn new_serialized_event_trampoline< + F: Fn(&AppSink) -> bool + Send + Sync + 'static, + >( + this: *mut ffi::GstAppSink, + f: glib::ffi::gpointer, + ) -> glib::ffi::gboolean { + let f: &F = &*(f as *const F); + f(&from_glib_borrow(this)).into_glib() + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw( + self.as_ptr() as *mut _, + b"new-serialized-event\0".as_ptr() as *const _, + Some(transmute::<_, unsafe extern "C" fn()>( + new_serialized_event_trampoline:: as *const (), + )), + Box_::into_raw(f), + ) + } + } + + //#[cfg(any(feature = "v1_20", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + //#[doc(alias = "try-pull-object")] + //pub fn connect_try_pull_object(&self, f: F) -> SignalHandlerId { + // Ignored return value Gst.MiniObject + //} + #[doc(alias = "buffer-list")] pub fn connect_buffer_list_notify( &self, diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-app/sys/build.rs b/gstreamer-app/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-app/sys/build.rs +++ b/gstreamer-app/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-app/sys/src/lib.rs b/gstreamer-app/sys/src/lib.rs index 8b2bb7997..2b3436d8e 100644 --- a/gstreamer-app/sys/src/lib.rs +++ b/gstreamer-app/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -43,7 +43,8 @@ pub struct GstAppSinkCallbacks { pub eos: Option, pub new_preroll: Option gst::GstFlowReturn>, pub new_sample: Option gst::GstFlowReturn>, - pub _gst_reserved: [gpointer; 4], + pub new_event: Option gboolean>, + pub _gst_reserved: [gpointer; 3], } impl ::std::fmt::Debug for GstAppSinkCallbacks { @@ -52,6 +53,7 @@ impl ::std::fmt::Debug for GstAppSinkCallbacks { .field("eos", &self.eos) .field("new_preroll", &self.new_preroll) .field("new_sample", &self.new_sample) + .field("new_event", &self.new_event) .finish() } } @@ -69,7 +71,9 @@ pub struct GstAppSinkClass { Option *mut gst::GstSample>, pub try_pull_sample: Option *mut gst::GstSample>, - pub _gst_reserved: [gpointer; 2], + pub try_pull_object: + Option *mut gst::GstMiniObject>, + pub _gst_reserved: [gpointer; 1], } impl ::std::fmt::Debug for GstAppSinkClass { @@ -83,6 +87,7 @@ impl ::std::fmt::Debug for GstAppSinkClass { .field("pull_sample", &self.pull_sample) .field("try_pull_preroll", &self.try_pull_preroll) .field("try_pull_sample", &self.try_pull_sample) + .field("try_pull_object", &self.try_pull_object) .finish() } } @@ -209,6 +214,9 @@ extern "C" { pub fn gst_app_sink_get_max_buffers(appsink: *mut GstAppSink) -> c_uint; pub fn gst_app_sink_get_wait_on_eos(appsink: *mut GstAppSink) -> gboolean; pub fn gst_app_sink_is_eos(appsink: *mut GstAppSink) -> gboolean; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_app_sink_pull_object(appsink: *mut GstAppSink) -> *mut gst::GstMiniObject; pub fn gst_app_sink_pull_preroll(appsink: *mut GstAppSink) -> *mut gst::GstSample; pub fn gst_app_sink_pull_sample(appsink: *mut GstAppSink) -> *mut gst::GstSample; #[cfg(any(feature = "v1_12", feature = "dox"))] @@ -225,6 +233,12 @@ extern "C" { pub fn gst_app_sink_set_emit_signals(appsink: *mut GstAppSink, emit: gboolean); pub fn gst_app_sink_set_max_buffers(appsink: *mut GstAppSink, max: c_uint); pub fn gst_app_sink_set_wait_on_eos(appsink: *mut GstAppSink, wait: gboolean); + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_app_sink_try_pull_object( + appsink: *mut GstAppSink, + timeout: gst::GstClockTime, + ) -> *mut gst::GstMiniObject; #[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_app_sink_try_pull_preroll( diff --git a/gstreamer-app/sys/tests/abi.rs b/gstreamer-app/sys/tests/abi.rs index 1760c5af9..4f23167bd 100644 --- a/gstreamer-app/sys/tests/abi.rs +++ b/gstreamer-app/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_app_sys::*; diff --git a/gstreamer-app/sys/tests/constant.c b/gstreamer-app/sys/tests/constant.c index 07eefb60e..ca3e0a6ff 100644 --- a/gstreamer-app/sys/tests/constant.c +++ b/gstreamer-app/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-app/sys/tests/layout.c b/gstreamer-app/sys/tests/layout.c index 908faf897..c62a006d5 100644 --- a/gstreamer-app/sys/tests/layout.c +++ b/gstreamer-app/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-audio/sys/build.rs b/gstreamer-audio/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-audio/sys/build.rs +++ b/gstreamer-audio/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-audio/sys/src/lib.rs b/gstreamer-audio/sys/src/lib.rs index 74ef0d2ee..f931e06f3 100644 --- a/gstreamer-audio/sys/src/lib.rs +++ b/gstreamer-audio/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-audio/sys/tests/abi.rs b/gstreamer-audio/sys/tests/abi.rs index 706cedc86..8f5329b8f 100644 --- a/gstreamer-audio/sys/tests/abi.rs +++ b/gstreamer-audio/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_audio_sys::*; diff --git a/gstreamer-audio/sys/tests/constant.c b/gstreamer-audio/sys/tests/constant.c index 9aaafcb4e..4b8cab00f 100644 --- a/gstreamer-audio/sys/tests/constant.c +++ b/gstreamer-audio/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-audio/sys/tests/layout.c b/gstreamer-audio/sys/tests/layout.c index 9a2c8e17e..ef1280811 100644 --- a/gstreamer-audio/sys/tests/layout.c +++ b/gstreamer-audio/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-base/sys/build.rs b/gstreamer-base/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-base/sys/build.rs +++ b/gstreamer-base/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-base/sys/src/lib.rs b/gstreamer-base/sys/src/lib.rs index 9845515ac..8cc7f077a 100644 --- a/gstreamer-base/sys/src/lib.rs +++ b/gstreamer-base/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-base/sys/tests/abi.rs b/gstreamer-base/sys/tests/abi.rs index b37e13d82..f05cfbcae 100644 --- a/gstreamer-base/sys/tests/abi.rs +++ b/gstreamer-base/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_base_sys::*; diff --git a/gstreamer-base/sys/tests/constant.c b/gstreamer-base/sys/tests/constant.c index 8917e3674..c169c02d9 100644 --- a/gstreamer-base/sys/tests/constant.c +++ b/gstreamer-base/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-base/sys/tests/layout.c b/gstreamer-base/sys/tests/layout.c index 1f19e80a2..9652ee8ba 100644 --- a/gstreamer-base/sys/tests/layout.c +++ b/gstreamer-base/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-check/src/auto/versions.txt b/gstreamer-check/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-check/sys/build.rs b/gstreamer-check/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-check/sys/build.rs +++ b/gstreamer-check/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-check/sys/src/lib.rs b/gstreamer-check/sys/src/lib.rs index dcecb9fb3..1d8c60dde 100644 --- a/gstreamer-check/sys/src/lib.rs +++ b/gstreamer-check/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-check/sys/tests/abi.rs b/gstreamer-check/sys/tests/abi.rs index 226e0d4fd..9c0953540 100644 --- a/gstreamer-check/sys/tests/abi.rs +++ b/gstreamer-check/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_check_sys::*; diff --git a/gstreamer-check/sys/tests/constant.c b/gstreamer-check/sys/tests/constant.c index 25f7aba99..26d014bae 100644 --- a/gstreamer-check/sys/tests/constant.c +++ b/gstreamer-check/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-check/sys/tests/layout.c b/gstreamer-check/sys/tests/layout.c index b1bc7bc78..fa8174b52 100644 --- a/gstreamer-check/sys/tests/layout.c +++ b/gstreamer-check/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-controller/src/auto/versions.txt b/gstreamer-controller/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-controller/sys/build.rs b/gstreamer-controller/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-controller/sys/build.rs +++ b/gstreamer-controller/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-controller/sys/src/lib.rs b/gstreamer-controller/sys/src/lib.rs index bd493366f..49ece0b72 100644 --- a/gstreamer-controller/sys/src/lib.rs +++ b/gstreamer-controller/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-controller/sys/tests/abi.rs b/gstreamer-controller/sys/tests/abi.rs index a1dbaf1ba..31d2d1048 100644 --- a/gstreamer-controller/sys/tests/abi.rs +++ b/gstreamer-controller/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_controller_sys::*; diff --git a/gstreamer-controller/sys/tests/constant.c b/gstreamer-controller/sys/tests/constant.c index ae42ff29e..c44b36805 100644 --- a/gstreamer-controller/sys/tests/constant.c +++ b/gstreamer-controller/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-controller/sys/tests/layout.c b/gstreamer-controller/sys/tests/layout.c index a4082aaaa..bf14a7312 100644 --- a/gstreamer-controller/sys/tests/layout.c +++ b/gstreamer-controller/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-editing-services/src/auto/timeline.rs b/gstreamer-editing-services/src/auto/timeline.rs index d43b58f4c..97012c65a 100644 --- a/gstreamer-editing-services/src/auto/timeline.rs +++ b/gstreamer-editing-services/src/auto/timeline.rs @@ -88,6 +88,11 @@ pub trait TimelineExt: 'static { #[doc(alias = "ges_timeline_commit_sync")] fn commit_sync(&self) -> bool; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "ges_timeline_freeze_commit")] + fn freeze_commit(&self); + #[doc(alias = "ges_timeline_get_auto_transition")] #[doc(alias = "get_auto_transition")] fn is_auto_transition(&self) -> bool; @@ -183,6 +188,11 @@ pub trait TimelineExt: 'static { #[doc(alias = "ges_timeline_set_snapping_distance")] fn set_snapping_distance(&self, snapping_distance: gst::ClockTime); + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "ges_timeline_thaw_commit")] + fn thaw_commit(&self); + #[doc(alias = "commited")] fn connect_commited(&self, f: F) -> SignalHandlerId; @@ -282,6 +292,14 @@ impl> TimelineExt for O { } } + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + fn freeze_commit(&self) { + unsafe { + ffi::ges_timeline_freeze_commit(self.as_ref().to_glib_none().0); + } + } + fn is_auto_transition(&self) -> bool { unsafe { from_glib(ffi::ges_timeline_get_auto_transition( @@ -506,6 +524,14 @@ impl> TimelineExt for O { } } + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + fn thaw_commit(&self) { + unsafe { + ffi::ges_timeline_thaw_commit(self.as_ref().to_glib_none().0); + } + } + fn connect_commited(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn commited_trampoline, F: Fn(&P) + 'static>( this: *mut ffi::GESTimeline, diff --git a/gstreamer-editing-services/src/auto/versions.txt b/gstreamer-editing-services/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-editing-services/sys/build.rs b/gstreamer-editing-services/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-editing-services/sys/build.rs +++ b/gstreamer-editing-services/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-editing-services/sys/src/lib.rs b/gstreamer-editing-services/sys/src/lib.rs index 750c0daf1..e46d227eb 100644 --- a/gstreamer-editing-services/sys/src/lib.rs +++ b/gstreamer-editing-services/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -200,6 +200,10 @@ pub const GES_VERSION_MINOR: c_int = 19; pub const GES_VERSION_NANO: c_int = 1; // Flags +pub type GESMarkerFlags = c_uint; +pub const GES_MARKER_FLAG_NONE: GESMarkerFlags = 0; +pub const GES_MARKER_FLAG_SNAPPABLE: GESMarkerFlags = 1; + pub type GESMetaFlag = c_uint; pub const GES_META_READABLE: GESMetaFlag = 1; pub const GES_META_WRITABLE: GESMetaFlag = 2; @@ -2662,6 +2666,13 @@ extern "C" { //========================================================================= pub fn ges_video_test_pattern_get_type() -> GType; + //========================================================================= + // GESMarkerFlags + //========================================================================= + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn ges_marker_flags_get_type() -> GType; + //========================================================================= // GESMetaFlag //========================================================================= @@ -3346,6 +3357,9 @@ extern "C" { pub fn ges_timeline_append_layer(timeline: *mut GESTimeline) -> *mut GESLayer; pub fn ges_timeline_commit(timeline: *mut GESTimeline) -> gboolean; pub fn ges_timeline_commit_sync(timeline: *mut GESTimeline) -> gboolean; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn ges_timeline_freeze_commit(timeline: *mut GESTimeline); pub fn ges_timeline_get_auto_transition(timeline: *mut GESTimeline) -> gboolean; pub fn ges_timeline_get_duration(timeline: *mut GESTimeline) -> gst::GstClockTime; pub fn ges_timeline_get_element( @@ -3410,6 +3424,9 @@ extern "C" { timeline: *mut GESTimeline, snapping_distance: gst::GstClockTime, ); + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn ges_timeline_thaw_commit(timeline: *mut GESTimeline); //========================================================================= // GESTimelineElement diff --git a/gstreamer-editing-services/sys/tests/abi.rs b/gstreamer-editing-services/sys/tests/abi.rs index 845b4982f..62f515236 100644 --- a/gstreamer-editing-services/sys/tests/abi.rs +++ b/gstreamer-editing-services/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_editing_services_sys::*; @@ -561,6 +561,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), + ( + "GESMarkerFlags", + Layout { + size: size_of::(), + alignment: align_of::(), + }, + ), ( "GESMarkerListClass", Layout { @@ -1087,6 +1094,8 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) GES_ERROR_NEGATIVE_TIME", "5"), ("(gint) GES_ERROR_NOT_ENOUGH_INTERNAL_CONTENT", "6"), ("GES_FRAME_NUMBER_NONE", "9223372036854775807"), + ("(guint) GES_MARKER_FLAG_NONE", "0"), + ("(guint) GES_MARKER_FLAG_SNAPPABLE", "1"), ("GES_META_DESCRIPTION", "description"), ("GES_META_FORMATTER_EXTENSION", "extension"), ("GES_META_FORMATTER_MIMETYPE", "mimetype"), diff --git a/gstreamer-editing-services/sys/tests/constant.c b/gstreamer-editing-services/sys/tests/constant.c index fce92053a..300255578 100644 --- a/gstreamer-editing-services/sys/tests/constant.c +++ b/gstreamer-editing-services/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" @@ -55,6 +55,8 @@ int main() { PRINT_CONSTANT((gint) GES_ERROR_NEGATIVE_TIME); PRINT_CONSTANT((gint) GES_ERROR_NOT_ENOUGH_INTERNAL_CONTENT); PRINT_CONSTANT(GES_FRAME_NUMBER_NONE); + PRINT_CONSTANT((guint) GES_MARKER_FLAG_NONE); + PRINT_CONSTANT((guint) GES_MARKER_FLAG_SNAPPABLE); PRINT_CONSTANT(GES_META_DESCRIPTION); PRINT_CONSTANT(GES_META_FORMATTER_EXTENSION); PRINT_CONSTANT(GES_META_FORMATTER_MIMETYPE); diff --git a/gstreamer-editing-services/sys/tests/layout.c b/gstreamer-editing-services/sys/tests/layout.c index 40ca60bc6..85f67d436 100644 --- a/gstreamer-editing-services/sys/tests/layout.c +++ b/gstreamer-editing-services/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" @@ -58,6 +58,7 @@ int main() { printf("%s;%zu;%zu\n", "GESLayer", sizeof(GESLayer), alignof(GESLayer)); printf("%s;%zu;%zu\n", "GESLayerClass", sizeof(GESLayerClass), alignof(GESLayerClass)); printf("%s;%zu;%zu\n", "GESMarkerClass", sizeof(GESMarkerClass), alignof(GESMarkerClass)); + printf("%s;%zu;%zu\n", "GESMarkerFlags", sizeof(GESMarkerFlags), alignof(GESMarkerFlags)); printf("%s;%zu;%zu\n", "GESMarkerListClass", sizeof(GESMarkerListClass), alignof(GESMarkerListClass)); printf("%s;%zu;%zu\n", "GESMetaContainerInterface", sizeof(GESMetaContainerInterface), alignof(GESMetaContainerInterface)); printf("%s;%zu;%zu\n", "GESMetaFlag", sizeof(GESMetaFlag), alignof(GESMetaFlag)); diff --git a/gstreamer-gl/egl/src/auto/versions.txt b/gstreamer-gl/egl/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-gl/egl/sys/build.rs b/gstreamer-gl/egl/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-gl/egl/sys/build.rs +++ b/gstreamer-gl/egl/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-gl/egl/sys/src/lib.rs b/gstreamer-gl/egl/sys/src/lib.rs index 0361f626c..e91e735cd 100644 --- a/gstreamer-gl/egl/sys/src/lib.rs +++ b/gstreamer-gl/egl/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-gl/egl/sys/tests/abi.rs b/gstreamer-gl/egl/sys/tests/abi.rs index 7de6d7656..759c48257 100644 --- a/gstreamer-gl/egl/sys/tests/abi.rs +++ b/gstreamer-gl/egl/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_gl_egl_sys::*; diff --git a/gstreamer-gl/egl/sys/tests/constant.c b/gstreamer-gl/egl/sys/tests/constant.c index 84aab7c97..5e603db50 100644 --- a/gstreamer-gl/egl/sys/tests/constant.c +++ b/gstreamer-gl/egl/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/egl/sys/tests/layout.c b/gstreamer-gl/egl/sys/tests/layout.c index d41a80fa1..a77652932 100644 --- a/gstreamer-gl/egl/sys/tests/layout.c +++ b/gstreamer-gl/egl/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/src/auto/gl_window.rs b/gstreamer-gl/src/auto/gl_window.rs index 0cff4c206..928055743 100644 --- a/gstreamer-gl/src/auto/gl_window.rs +++ b/gstreamer-gl/src/auto/gl_window.rs @@ -118,6 +118,14 @@ pub trait GLWindowExt: 'static { &self, f: F, ) -> SignalHandlerId; + + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "window-handle-changed")] + fn connect_window_handle_changed( + &self, + f: F, + ) -> SignalHandlerId; } impl> GLWindowExt for O { @@ -380,4 +388,33 @@ impl> GLWindowExt for O { ) } } + + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + fn connect_window_handle_changed( + &self, + f: F, + ) -> SignalHandlerId { + unsafe extern "C" fn window_handle_changed_trampoline< + P: IsA, + F: Fn(&P) + Send + Sync + 'static, + >( + this: *mut ffi::GstGLWindow, + f: glib::ffi::gpointer, + ) { + let f: &F = &*(f as *const F); + f(GLWindow::from_glib_borrow(this).unsafe_cast_ref()) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw( + self.as_ptr() as *mut _, + b"window-handle-changed\0".as_ptr() as *const _, + Some(transmute::<_, unsafe extern "C" fn()>( + window_handle_changed_trampoline:: as *const (), + )), + Box_::into_raw(f), + ) + } + } } diff --git a/gstreamer-gl/src/auto/versions.txt b/gstreamer-gl/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-gl/sys/build.rs b/gstreamer-gl/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-gl/sys/build.rs +++ b/gstreamer-gl/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-gl/sys/src/lib.rs b/gstreamer-gl/sys/src/lib.rs index fb9aea04e..716c31d11 100644 --- a/gstreamer-gl/sys/src/lib.rs +++ b/gstreamer-gl/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-gl/sys/tests/abi.rs b/gstreamer-gl/sys/tests/abi.rs index 69f1cdbac..b238677e7 100644 --- a/gstreamer-gl/sys/tests/abi.rs +++ b/gstreamer-gl/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_gl_sys::*; diff --git a/gstreamer-gl/sys/tests/constant.c b/gstreamer-gl/sys/tests/constant.c index 1aee0d2c2..434097c1f 100644 --- a/gstreamer-gl/sys/tests/constant.c +++ b/gstreamer-gl/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/sys/tests/layout.c b/gstreamer-gl/sys/tests/layout.c index 7bc5e24eb..a603e29b0 100644 --- a/gstreamer-gl/sys/tests/layout.c +++ b/gstreamer-gl/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/wayland/src/auto/versions.txt b/gstreamer-gl/wayland/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-gl/wayland/sys/build.rs b/gstreamer-gl/wayland/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-gl/wayland/sys/build.rs +++ b/gstreamer-gl/wayland/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-gl/wayland/sys/src/lib.rs b/gstreamer-gl/wayland/sys/src/lib.rs index 55cdc6198..7e2aec8a3 100644 --- a/gstreamer-gl/wayland/sys/src/lib.rs +++ b/gstreamer-gl/wayland/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-gl/wayland/sys/tests/abi.rs b/gstreamer-gl/wayland/sys/tests/abi.rs index bbd775f04..bee6f9f0e 100644 --- a/gstreamer-gl/wayland/sys/tests/abi.rs +++ b/gstreamer-gl/wayland/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_gl_wayland_sys::*; diff --git a/gstreamer-gl/wayland/sys/tests/constant.c b/gstreamer-gl/wayland/sys/tests/constant.c index 25f7aba99..26d014bae 100644 --- a/gstreamer-gl/wayland/sys/tests/constant.c +++ b/gstreamer-gl/wayland/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/wayland/sys/tests/layout.c b/gstreamer-gl/wayland/sys/tests/layout.c index a7faf2a73..62012e767 100644 --- a/gstreamer-gl/wayland/sys/tests/layout.c +++ b/gstreamer-gl/wayland/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/x11/src/auto/versions.txt b/gstreamer-gl/x11/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-gl/x11/sys/build.rs b/gstreamer-gl/x11/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-gl/x11/sys/build.rs +++ b/gstreamer-gl/x11/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-gl/x11/sys/src/lib.rs b/gstreamer-gl/x11/sys/src/lib.rs index 45bd6bc18..356ffaf5d 100644 --- a/gstreamer-gl/x11/sys/src/lib.rs +++ b/gstreamer-gl/x11/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-gl/x11/sys/tests/abi.rs b/gstreamer-gl/x11/sys/tests/abi.rs index dcede7b84..694df583f 100644 --- a/gstreamer-gl/x11/sys/tests/abi.rs +++ b/gstreamer-gl/x11/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_gl_x11_sys::*; diff --git a/gstreamer-gl/x11/sys/tests/constant.c b/gstreamer-gl/x11/sys/tests/constant.c index 25f7aba99..26d014bae 100644 --- a/gstreamer-gl/x11/sys/tests/constant.c +++ b/gstreamer-gl/x11/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-gl/x11/sys/tests/layout.c b/gstreamer-gl/x11/sys/tests/layout.c index cc6815518..7ab7f23ea 100644 --- a/gstreamer-gl/x11/sys/tests/layout.c +++ b/gstreamer-gl/x11/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-mpegts/sys/build.rs b/gstreamer-mpegts/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-mpegts/sys/build.rs +++ b/gstreamer-mpegts/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-mpegts/sys/src/lib.rs b/gstreamer-mpegts/sys/src/lib.rs index d924d1cf9..48fd31072 100644 --- a/gstreamer-mpegts/sys/src/lib.rs +++ b/gstreamer-mpegts/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-mpegts/sys/tests/abi.rs b/gstreamer-mpegts/sys/tests/abi.rs index 402fded47..c5bad734a 100644 --- a/gstreamer-mpegts/sys/tests/abi.rs +++ b/gstreamer-mpegts/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_mpegts_sys::*; diff --git a/gstreamer-mpegts/sys/tests/constant.c b/gstreamer-mpegts/sys/tests/constant.c index 13f102515..251ed1cca 100644 --- a/gstreamer-mpegts/sys/tests/constant.c +++ b/gstreamer-mpegts/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-mpegts/sys/tests/layout.c b/gstreamer-mpegts/sys/tests/layout.c index aad1338a4..4da3f1cf7 100644 --- a/gstreamer-mpegts/sys/tests/layout.c +++ b/gstreamer-mpegts/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-net/sys/build.rs b/gstreamer-net/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-net/sys/build.rs +++ b/gstreamer-net/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-net/sys/src/lib.rs b/gstreamer-net/sys/src/lib.rs index 19aa258a6..bf1c639cb 100644 --- a/gstreamer-net/sys/src/lib.rs +++ b/gstreamer-net/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-net/sys/tests/abi.rs b/gstreamer-net/sys/tests/abi.rs index 7ba560be1..385fc4326 100644 --- a/gstreamer-net/sys/tests/abi.rs +++ b/gstreamer-net/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_net_sys::*; diff --git a/gstreamer-net/sys/tests/constant.c b/gstreamer-net/sys/tests/constant.c index 0c28869d0..9128a0255 100644 --- a/gstreamer-net/sys/tests/constant.c +++ b/gstreamer-net/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-net/sys/tests/layout.c b/gstreamer-net/sys/tests/layout.c index 82c3c7104..27a4d123f 100644 --- a/gstreamer-net/sys/tests/layout.c +++ b/gstreamer-net/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-pbutils/src/auto/functions.rs b/gstreamer-pbutils/src/auto/functions.rs index b277c9f58..d26bb5e2c 100644 --- a/gstreamer-pbutils/src/auto/functions.rs +++ b/gstreamer-pbutils/src/auto/functions.rs @@ -23,6 +23,13 @@ pub fn encoding_list_available_categories() -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_encoding_list_available_categories()) } } +//#[cfg(any(feature = "v1_20", feature = "dox"))] +//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +//#[doc(alias = "gst_pb_utils_get_caps_description_flags")] +//pub fn pb_utils_get_caps_description_flags(caps: &gst::Caps) -> /*Ignored*/PbUtilsCapsDescriptionFlags { +// unsafe { TODO: call ffi:gst_pb_utils_get_caps_description_flags() } +//} + #[doc(alias = "gst_pb_utils_get_element_description")] pub fn pb_utils_get_element_description( factory_name: &str, @@ -36,6 +43,18 @@ pub fn pb_utils_get_element_description( } } +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +#[doc(alias = "gst_pb_utils_get_file_extension_from_caps")] +pub fn pb_utils_get_file_extension_from_caps(caps: &gst::Caps) -> Option { + assert_initialized_main_thread!(); + unsafe { + from_glib_full(ffi::gst_pb_utils_get_file_extension_from_caps( + caps.to_glib_none().0, + )) + } +} + #[doc(alias = "gst_pb_utils_get_sink_description")] pub fn pb_utils_get_sink_description(protocol: &str) -> Result { assert_initialized_main_thread!(); diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-pbutils/sys/build.rs b/gstreamer-pbutils/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-pbutils/sys/build.rs +++ b/gstreamer-pbutils/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-pbutils/sys/src/lib.rs b/gstreamer-pbutils/sys/src/lib.rs index 845f72292..ef86db724 100644 --- a/gstreamer-pbutils/sys/src/lib.rs +++ b/gstreamer-pbutils/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -88,6 +88,15 @@ pub const GST_DISCOVERER_SERIALIZE_TAGS: GstDiscovererSerializeFlags = 2; pub const GST_DISCOVERER_SERIALIZE_MISC: GstDiscovererSerializeFlags = 4; pub const GST_DISCOVERER_SERIALIZE_ALL: GstDiscovererSerializeFlags = 7; +pub type GstPbUtilsCapsDescriptionFlags = c_uint; +pub const GST_PBUTILS_CAPS_DESCRIPTION_FLAG_CONTAINER: GstPbUtilsCapsDescriptionFlags = 1; +pub const GST_PBUTILS_CAPS_DESCRIPTION_FLAG_AUDIO: GstPbUtilsCapsDescriptionFlags = 2; +pub const GST_PBUTILS_CAPS_DESCRIPTION_FLAG_VIDEO: GstPbUtilsCapsDescriptionFlags = 4; +pub const GST_PBUTILS_CAPS_DESCRIPTION_FLAG_IMAGE: GstPbUtilsCapsDescriptionFlags = 8; +pub const GST_PBUTILS_CAPS_DESCRIPTION_FLAG_SUBTITLE: GstPbUtilsCapsDescriptionFlags = 16; +pub const GST_PBUTILS_CAPS_DESCRIPTION_FLAG_TAG: GstPbUtilsCapsDescriptionFlags = 32; +pub const GST_PBUTILS_CAPS_DESCRIPTION_FLAG_GENERIC: GstPbUtilsCapsDescriptionFlags = 64; + // Callbacks pub type GstAudioVisualizerShaderFunc = Option< unsafe extern "C" fn( @@ -364,6 +373,13 @@ extern "C" { //========================================================================= pub fn gst_discoverer_serialize_flags_get_type() -> GType; + //========================================================================= + // GstPbUtilsCapsDescriptionFlags + //========================================================================= + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_pb_utils_caps_description_flags_get_type() -> GType; + //========================================================================= // GstInstallPluginsContext //========================================================================= @@ -741,6 +757,9 @@ extern "C" { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] pub fn gst_codec_utils_aac_get_sample_rate(audio_config: *const u8, len: c_uint) -> c_uint; pub fn gst_codec_utils_aac_get_sample_rate_from_index(sr_idx: c_uint) -> c_uint; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_codec_utils_caps_get_mime_codec(caps: *mut gst::GstCaps) -> *mut c_char; pub fn gst_codec_utils_h264_caps_set_level_and_profile( caps: *mut gst::GstCaps, sps: *const u8, @@ -749,6 +768,15 @@ extern "C" { pub fn gst_codec_utils_h264_get_level(sps: *const u8, len: c_uint) -> *const c_char; pub fn gst_codec_utils_h264_get_level_idc(level: *const c_char) -> u8; pub fn gst_codec_utils_h264_get_profile(sps: *const u8, len: c_uint) -> *const c_char; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_codec_utils_h264_get_profile_flags_level( + codecs_data: *const u8, + len: c_uint, + profile: *mut u8, + flags: *mut u8, + level: *mut u8, + ) -> gboolean; pub fn gst_codec_utils_h265_caps_set_level_tier_and_profile( caps: *mut gst::GstCaps, profile_tier_level: *const u8, @@ -875,10 +903,18 @@ extern "C" { codec_tag: *const c_char, caps: *const gst::GstCaps, ) -> gboolean; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_pb_utils_get_caps_description_flags( + caps: *const gst::GstCaps, + ) -> GstPbUtilsCapsDescriptionFlags; pub fn gst_pb_utils_get_codec_description(caps: *const gst::GstCaps) -> *mut c_char; pub fn gst_pb_utils_get_decoder_description(caps: *const gst::GstCaps) -> *mut c_char; pub fn gst_pb_utils_get_element_description(factory_name: *const c_char) -> *mut c_char; pub fn gst_pb_utils_get_encoder_description(caps: *const gst::GstCaps) -> *mut c_char; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_pb_utils_get_file_extension_from_caps(caps: *const gst::GstCaps) -> *mut c_char; pub fn gst_pb_utils_get_sink_description(protocol: *const c_char) -> *mut c_char; pub fn gst_pb_utils_get_source_description(protocol: *const c_char) -> *mut c_char; pub fn gst_pb_utils_init(); diff --git a/gstreamer-pbutils/sys/tests/abi.rs b/gstreamer-pbutils/sys/tests/abi.rs index 623aac907..64350bb05 100644 --- a/gstreamer-pbutils/sys/tests/abi.rs +++ b/gstreamer-pbutils/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_pbutils_sys::*; @@ -316,6 +316,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), + ( + "GstPbUtilsCapsDescriptionFlags", + Layout { + size: size_of::(), + alignment: align_of::(), + }, + ), ]; const RUST_CONSTANTS: &[(&str, &str)] = &[ @@ -371,4 +378,11 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) GST_INSTALL_PLUGINS_STARTED_OK", "200"), ("(gint) GST_INSTALL_PLUGINS_SUCCESS", "0"), ("(gint) GST_INSTALL_PLUGINS_USER_ABORT", "4"), + ("(guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_AUDIO", "2"), + ("(guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_CONTAINER", "1"), + ("(guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_GENERIC", "64"), + ("(guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_IMAGE", "8"), + ("(guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_SUBTITLE", "16"), + ("(guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_TAG", "32"), + ("(guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_VIDEO", "4"), ]; diff --git a/gstreamer-pbutils/sys/tests/constant.c b/gstreamer-pbutils/sys/tests/constant.c index d5f46a47c..ec3e3ff46 100644 --- a/gstreamer-pbutils/sys/tests/constant.c +++ b/gstreamer-pbutils/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" @@ -66,5 +66,12 @@ int main() { PRINT_CONSTANT((gint) GST_INSTALL_PLUGINS_STARTED_OK); PRINT_CONSTANT((gint) GST_INSTALL_PLUGINS_SUCCESS); PRINT_CONSTANT((gint) GST_INSTALL_PLUGINS_USER_ABORT); + PRINT_CONSTANT((guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_AUDIO); + PRINT_CONSTANT((guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_CONTAINER); + PRINT_CONSTANT((guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_GENERIC); + PRINT_CONSTANT((guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_IMAGE); + PRINT_CONSTANT((guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_SUBTITLE); + PRINT_CONSTANT((guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_TAG); + PRINT_CONSTANT((guint) GST_PBUTILS_CAPS_DESCRIPTION_FLAG_VIDEO); return 0; } diff --git a/gstreamer-pbutils/sys/tests/layout.c b/gstreamer-pbutils/sys/tests/layout.c index 4904c1e6d..cdca4feaa 100644 --- a/gstreamer-pbutils/sys/tests/layout.c +++ b/gstreamer-pbutils/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" @@ -23,5 +23,6 @@ int main() { printf("%s;%zu;%zu\n", "GstDiscovererVideoInfoClass", sizeof(GstDiscovererVideoInfoClass), alignof(GstDiscovererVideoInfoClass)); printf("%s;%zu;%zu\n", "GstEncodingTargetClass", sizeof(GstEncodingTargetClass), alignof(GstEncodingTargetClass)); printf("%s;%zu;%zu\n", "GstInstallPluginsReturn", sizeof(GstInstallPluginsReturn), alignof(GstInstallPluginsReturn)); + printf("%s;%zu;%zu\n", "GstPbUtilsCapsDescriptionFlags", sizeof(GstPbUtilsCapsDescriptionFlags), alignof(GstPbUtilsCapsDescriptionFlags)); return 0; } diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-player/sys/build.rs b/gstreamer-player/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-player/sys/build.rs +++ b/gstreamer-player/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-player/sys/src/lib.rs b/gstreamer-player/sys/src/lib.rs index 1bec94c7c..294450c75 100644 --- a/gstreamer-player/sys/src/lib.rs +++ b/gstreamer-player/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-player/sys/tests/abi.rs b/gstreamer-player/sys/tests/abi.rs index b00cb188d..a8022f85f 100644 --- a/gstreamer-player/sys/tests/abi.rs +++ b/gstreamer-player/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_player_sys::*; diff --git a/gstreamer-player/sys/tests/constant.c b/gstreamer-player/sys/tests/constant.c index 0f1f61660..63ae55faa 100644 --- a/gstreamer-player/sys/tests/constant.c +++ b/gstreamer-player/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-player/sys/tests/layout.c b/gstreamer-player/sys/tests/layout.c index ebc3a7e12..56d5b2681 100644 --- a/gstreamer-player/sys/tests/layout.c +++ b/gstreamer-player/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtp/src/auto/enums.rs b/gstreamer-rtp/src/auto/enums.rs index 7e0b12b5f..c19534348 100644 --- a/gstreamer-rtp/src/auto/enums.rs +++ b/gstreamer-rtp/src/auto/enums.rs @@ -131,6 +131,34 @@ pub enum RTCPSDESType { Note, #[doc(alias = "GST_RTCP_SDES_PRIV")] Priv, + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "GST_RTCP_SDES_H323_CADDR")] + H323Caddr, + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "GST_RTCP_SDES_APSI")] + Apsi, + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "GST_RTCP_SDES_RGRP")] + Rgrp, + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "GST_RTCP_SDES_RTP_STREAM_ID")] + RtpStreamId, + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "GST_RTCP_SDES_REPAIRED_RTP_STREAM_ID")] + RepairedRtpStreamId, + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "GST_RTCP_SDES_CCID")] + Ccid, + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "GST_RTCP_SDES_MID")] + Mid, #[doc(hidden)] __Unknown(i32), } @@ -151,6 +179,20 @@ impl IntoGlib for RTCPSDESType { Self::Tool => ffi::GST_RTCP_SDES_TOOL, Self::Note => ffi::GST_RTCP_SDES_NOTE, Self::Priv => ffi::GST_RTCP_SDES_PRIV, + #[cfg(any(feature = "v1_20", feature = "dox"))] + Self::H323Caddr => ffi::GST_RTCP_SDES_H323_CADDR, + #[cfg(any(feature = "v1_20", feature = "dox"))] + Self::Apsi => ffi::GST_RTCP_SDES_APSI, + #[cfg(any(feature = "v1_20", feature = "dox"))] + Self::Rgrp => ffi::GST_RTCP_SDES_RGRP, + #[cfg(any(feature = "v1_20", feature = "dox"))] + Self::RtpStreamId => ffi::GST_RTCP_SDES_RTP_STREAM_ID, + #[cfg(any(feature = "v1_20", feature = "dox"))] + Self::RepairedRtpStreamId => ffi::GST_RTCP_SDES_REPAIRED_RTP_STREAM_ID, + #[cfg(any(feature = "v1_20", feature = "dox"))] + Self::Ccid => ffi::GST_RTCP_SDES_CCID, + #[cfg(any(feature = "v1_20", feature = "dox"))] + Self::Mid => ffi::GST_RTCP_SDES_MID, Self::__Unknown(value) => value, } } @@ -171,6 +213,20 @@ impl FromGlib for RTCPSDESType { ffi::GST_RTCP_SDES_TOOL => Self::Tool, ffi::GST_RTCP_SDES_NOTE => Self::Note, ffi::GST_RTCP_SDES_PRIV => Self::Priv, + #[cfg(any(feature = "v1_20", feature = "dox"))] + ffi::GST_RTCP_SDES_H323_CADDR => Self::H323Caddr, + #[cfg(any(feature = "v1_20", feature = "dox"))] + ffi::GST_RTCP_SDES_APSI => Self::Apsi, + #[cfg(any(feature = "v1_20", feature = "dox"))] + ffi::GST_RTCP_SDES_RGRP => Self::Rgrp, + #[cfg(any(feature = "v1_20", feature = "dox"))] + ffi::GST_RTCP_SDES_RTP_STREAM_ID => Self::RtpStreamId, + #[cfg(any(feature = "v1_20", feature = "dox"))] + ffi::GST_RTCP_SDES_REPAIRED_RTP_STREAM_ID => Self::RepairedRtpStreamId, + #[cfg(any(feature = "v1_20", feature = "dox"))] + ffi::GST_RTCP_SDES_CCID => Self::Ccid, + #[cfg(any(feature = "v1_20", feature = "dox"))] + ffi::GST_RTCP_SDES_MID => Self::Mid, value => Self::__Unknown(value), } } diff --git a/gstreamer-rtp/src/auto/versions.txt b/gstreamer-rtp/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-rtp/sys/build.rs b/gstreamer-rtp/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-rtp/sys/build.rs +++ b/gstreamer-rtp/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-rtp/sys/src/lib.rs b/gstreamer-rtp/sys/src/lib.rs index fa063723e..2b80490d1 100644 --- a/gstreamer-rtp/sys/src/lib.rs +++ b/gstreamer-rtp/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -53,6 +53,27 @@ pub const GST_RTCP_SDES_LOC: GstRTCPSDESType = 5; pub const GST_RTCP_SDES_TOOL: GstRTCPSDESType = 6; pub const GST_RTCP_SDES_NOTE: GstRTCPSDESType = 7; pub const GST_RTCP_SDES_PRIV: GstRTCPSDESType = 8; +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +pub const GST_RTCP_SDES_H323_CADDR: GstRTCPSDESType = 9; +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +pub const GST_RTCP_SDES_APSI: GstRTCPSDESType = 10; +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +pub const GST_RTCP_SDES_RGRP: GstRTCPSDESType = 11; +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +pub const GST_RTCP_SDES_RTP_STREAM_ID: GstRTCPSDESType = 12; +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +pub const GST_RTCP_SDES_REPAIRED_RTP_STREAM_ID: GstRTCPSDESType = 13; +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +pub const GST_RTCP_SDES_CCID: GstRTCPSDESType = 14; +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +pub const GST_RTCP_SDES_MID: GstRTCPSDESType = 15; pub type GstRTCPType = c_int; pub const GST_RTCP_TYPE_INVALID: GstRTCPType = 0; @@ -366,7 +387,7 @@ pub struct GstRTPHeaderExtensionClass { *mut gst::GstBuffer, *mut u8, size_t, - ) -> size_t, + ) -> ssize_t, >, pub read: Option< unsafe extern "C" fn( @@ -1018,6 +1039,9 @@ extern "C" { pub fn gst_rtp_buffer_get_timestamp(rtp: *mut GstRTPBuffer) -> u32; pub fn gst_rtp_buffer_get_version(rtp: *mut GstRTPBuffer) -> u8; pub fn gst_rtp_buffer_pad_to(rtp: *mut GstRTPBuffer, len: c_uint); + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_rtp_buffer_remove_extension_data(rtp: *mut GstRTPBuffer); pub fn gst_rtp_buffer_set_csrc(rtp: *mut GstRTPBuffer, idx: u8, csrc: u32); pub fn gst_rtp_buffer_set_extension(rtp: *mut GstRTPBuffer, extension: gboolean); pub fn gst_rtp_buffer_set_extension_data( @@ -1344,7 +1368,7 @@ extern "C" { output: *mut gst::GstBuffer, data: *mut u8, size: size_t, - ) -> size_t; + ) -> ssize_t; //========================================================================= // Other functions diff --git a/gstreamer-rtp/sys/tests/abi.rs b/gstreamer-rtp/sys/tests/abi.rs index 33034807a..b35ea722b 100644 --- a/gstreamer-rtp/sys/tests/abi.rs +++ b/gstreamer-rtp/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_rtp_sys::*; @@ -387,15 +387,22 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) GST_RTCP_RTPFB_TYPE_TMMBN", "4"), ("(gint) GST_RTCP_RTPFB_TYPE_TMMBR", "3"), ("(gint) GST_RTCP_RTPFB_TYPE_TWCC", "15"), + ("(gint) GST_RTCP_SDES_APSI", "10"), + ("(gint) GST_RTCP_SDES_CCID", "14"), ("(gint) GST_RTCP_SDES_CNAME", "1"), ("(gint) GST_RTCP_SDES_EMAIL", "3"), ("(gint) GST_RTCP_SDES_END", "0"), + ("(gint) GST_RTCP_SDES_H323_CADDR", "9"), ("(gint) GST_RTCP_SDES_INVALID", "-1"), ("(gint) GST_RTCP_SDES_LOC", "5"), + ("(gint) GST_RTCP_SDES_MID", "15"), ("(gint) GST_RTCP_SDES_NAME", "2"), ("(gint) GST_RTCP_SDES_NOTE", "7"), ("(gint) GST_RTCP_SDES_PHONE", "4"), ("(gint) GST_RTCP_SDES_PRIV", "8"), + ("(gint) GST_RTCP_SDES_REPAIRED_RTP_STREAM_ID", "13"), + ("(gint) GST_RTCP_SDES_RGRP", "11"), + ("(gint) GST_RTCP_SDES_RTP_STREAM_ID", "12"), ("(gint) GST_RTCP_SDES_TOOL", "6"), ("(gint) GST_RTCP_TYPE_APP", "204"), ("(gint) GST_RTCP_TYPE_BYE", "203"), diff --git a/gstreamer-rtp/sys/tests/constant.c b/gstreamer-rtp/sys/tests/constant.c index e96a74985..1ad015a7d 100644 --- a/gstreamer-rtp/sys/tests/constant.c +++ b/gstreamer-rtp/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" @@ -48,15 +48,22 @@ int main() { PRINT_CONSTANT((gint) GST_RTCP_RTPFB_TYPE_TMMBN); PRINT_CONSTANT((gint) GST_RTCP_RTPFB_TYPE_TMMBR); PRINT_CONSTANT((gint) GST_RTCP_RTPFB_TYPE_TWCC); + PRINT_CONSTANT((gint) GST_RTCP_SDES_APSI); + PRINT_CONSTANT((gint) GST_RTCP_SDES_CCID); PRINT_CONSTANT((gint) GST_RTCP_SDES_CNAME); PRINT_CONSTANT((gint) GST_RTCP_SDES_EMAIL); PRINT_CONSTANT((gint) GST_RTCP_SDES_END); + PRINT_CONSTANT((gint) GST_RTCP_SDES_H323_CADDR); PRINT_CONSTANT((gint) GST_RTCP_SDES_INVALID); PRINT_CONSTANT((gint) GST_RTCP_SDES_LOC); + PRINT_CONSTANT((gint) GST_RTCP_SDES_MID); PRINT_CONSTANT((gint) GST_RTCP_SDES_NAME); PRINT_CONSTANT((gint) GST_RTCP_SDES_NOTE); PRINT_CONSTANT((gint) GST_RTCP_SDES_PHONE); PRINT_CONSTANT((gint) GST_RTCP_SDES_PRIV); + PRINT_CONSTANT((gint) GST_RTCP_SDES_REPAIRED_RTP_STREAM_ID); + PRINT_CONSTANT((gint) GST_RTCP_SDES_RGRP); + PRINT_CONSTANT((gint) GST_RTCP_SDES_RTP_STREAM_ID); PRINT_CONSTANT((gint) GST_RTCP_SDES_TOOL); PRINT_CONSTANT((gint) GST_RTCP_TYPE_APP); PRINT_CONSTANT((gint) GST_RTCP_TYPE_BYE); diff --git a/gstreamer-rtp/sys/tests/layout.c b/gstreamer-rtp/sys/tests/layout.c index c6394819c..389051c45 100644 --- a/gstreamer-rtp/sys/tests/layout.c +++ b/gstreamer-rtp/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-rtsp-server/sys/build.rs b/gstreamer-rtsp-server/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-rtsp-server/sys/build.rs +++ b/gstreamer-rtsp-server/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-rtsp-server/sys/src/lib.rs b/gstreamer-rtsp-server/sys/src/lib.rs index d72b75a26..549a8cd54 100644 --- a/gstreamer-rtsp-server/sys/src/lib.rs +++ b/gstreamer-rtsp-server/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-rtsp-server/sys/tests/abi.rs b/gstreamer-rtsp-server/sys/tests/abi.rs index 29ebff9c6..7eab728c8 100644 --- a/gstreamer-rtsp-server/sys/tests/abi.rs +++ b/gstreamer-rtsp-server/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_rtsp_server_sys::*; diff --git a/gstreamer-rtsp-server/sys/tests/constant.c b/gstreamer-rtsp-server/sys/tests/constant.c index cb01765aa..26eccbd99 100644 --- a/gstreamer-rtsp-server/sys/tests/constant.c +++ b/gstreamer-rtsp-server/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp-server/sys/tests/layout.c b/gstreamer-rtsp-server/sys/tests/layout.c index b44e561ca..896ffcdeb 100644 --- a/gstreamer-rtsp-server/sys/tests/layout.c +++ b/gstreamer-rtsp-server/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-rtsp/sys/build.rs b/gstreamer-rtsp/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-rtsp/sys/build.rs +++ b/gstreamer-rtsp/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-rtsp/sys/src/lib.rs b/gstreamer-rtsp/sys/src/lib.rs index 4fc430775..953e69b81 100644 --- a/gstreamer-rtsp/sys/src/lib.rs +++ b/gstreamer-rtsp/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -831,6 +831,11 @@ extern "C" { flush: gboolean, ) -> GstRTSPResult; pub fn gst_rtsp_connection_free(conn: *mut GstRTSPConnection) -> GstRTSPResult; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_rtsp_connection_get_ignore_x_server_reply( + conn: *const GstRTSPConnection, + ) -> gboolean; pub fn gst_rtsp_connection_get_ip(conn: *const GstRTSPConnection) -> *const c_char; pub fn gst_rtsp_connection_get_read_socket(conn: *const GstRTSPConnection) -> *mut gio::GSocket; @@ -956,6 +961,12 @@ extern "C" { limit: c_uint, ); pub fn gst_rtsp_connection_set_http_mode(conn: *mut GstRTSPConnection, enable: gboolean); + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_rtsp_connection_set_ignore_x_server_reply( + conn: *mut GstRTSPConnection, + ignore: gboolean, + ); pub fn gst_rtsp_connection_set_ip(conn: *mut GstRTSPConnection, ip: *const c_char); pub fn gst_rtsp_connection_set_proxy( conn: *mut GstRTSPConnection, diff --git a/gstreamer-rtsp/sys/tests/abi.rs b/gstreamer-rtsp/sys/tests/abi.rs index 28cc297b1..09f494c46 100644 --- a/gstreamer-rtsp/sys/tests/abi.rs +++ b/gstreamer-rtsp/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_rtsp_sys::*; diff --git a/gstreamer-rtsp/sys/tests/constant.c b/gstreamer-rtsp/sys/tests/constant.c index eee932107..bcc5be9c5 100644 --- a/gstreamer-rtsp/sys/tests/constant.c +++ b/gstreamer-rtsp/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-rtsp/sys/tests/layout.c b/gstreamer-rtsp/sys/tests/layout.c index c48b8d8dd..67876ca3e 100644 --- a/gstreamer-rtsp/sys/tests/layout.c +++ b/gstreamer-rtsp/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-sdp/sys/build.rs b/gstreamer-sdp/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-sdp/sys/build.rs +++ b/gstreamer-sdp/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-sdp/sys/src/lib.rs b/gstreamer-sdp/sys/src/lib.rs index 8a73a275d..fd2b05456 100644 --- a/gstreamer-sdp/sys/src/lib.rs +++ b/gstreamer-sdp/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-sdp/sys/tests/abi.rs b/gstreamer-sdp/sys/tests/abi.rs index 128927330..42e1b4888 100644 --- a/gstreamer-sdp/sys/tests/abi.rs +++ b/gstreamer-sdp/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_sdp_sys::*; diff --git a/gstreamer-sdp/sys/tests/constant.c b/gstreamer-sdp/sys/tests/constant.c index af0635fe8..1222793d4 100644 --- a/gstreamer-sdp/sys/tests/constant.c +++ b/gstreamer-sdp/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-sdp/sys/tests/layout.c b/gstreamer-sdp/sys/tests/layout.c index 244cf9d90..50892dd6c 100644 --- a/gstreamer-sdp/sys/tests/layout.c +++ b/gstreamer-sdp/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-tag/sys/build.rs b/gstreamer-tag/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-tag/sys/build.rs +++ b/gstreamer-tag/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-tag/sys/src/lib.rs b/gstreamer-tag/sys/src/lib.rs index d4b8aaf57..c24e85255 100644 --- a/gstreamer-tag/sys/src/lib.rs +++ b/gstreamer-tag/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/gstreamer-tag/sys/tests/abi.rs b/gstreamer-tag/sys/tests/abi.rs index da48b9c9f..707d9712f 100644 --- a/gstreamer-tag/sys/tests/abi.rs +++ b/gstreamer-tag/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_tag_sys::*; diff --git a/gstreamer-tag/sys/tests/constant.c b/gstreamer-tag/sys/tests/constant.c index 9cd28f30b..a22280779 100644 --- a/gstreamer-tag/sys/tests/constant.c +++ b/gstreamer-tag/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-tag/sys/tests/layout.c b/gstreamer-tag/sys/tests/layout.c index 9c5cae75f..f41943ebd 100644 --- a/gstreamer-tag/sys/tests/layout.c +++ b/gstreamer-tag/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-video/src/auto/video_decoder.rs b/gstreamer-video/src/auto/video_decoder.rs index 8d93c8fcb..c79068e0c 100644 --- a/gstreamer-video/src/auto/video_decoder.rs +++ b/gstreamer-video/src/auto/video_decoder.rs @@ -52,6 +52,16 @@ pub trait VideoDecoderExt: 'static { #[doc(alias = "gst_video_decoder_allocate_output_buffer")] fn allocate_output_buffer(&self) -> Result; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "gst_video_decoder_drop_subframe")] + fn drop_subframe(&self, frame: &VideoCodecFrame) -> gst::FlowReturn; + + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "gst_video_decoder_finish_subframe")] + fn finish_subframe(&self, frame: &VideoCodecFrame) -> gst::FlowReturn; + #[doc(alias = "gst_video_decoder_get_buffer_pool")] #[doc(alias = "get_buffer_pool")] fn buffer_pool(&self) -> Option; @@ -60,6 +70,12 @@ pub trait VideoDecoderExt: 'static { #[doc(alias = "get_estimate_rate")] fn estimate_rate(&self) -> i32; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "gst_video_decoder_get_input_subframe_index")] + #[doc(alias = "get_input_subframe_index")] + fn input_subframe_index(&self, frame: &VideoCodecFrame) -> u32; + #[doc(alias = "gst_video_decoder_get_max_decode_time")] #[doc(alias = "get_max_decode_time")] fn max_decode_time(&self, frame: &VideoCodecFrame) -> gst::ClockTimeDiff; @@ -86,13 +102,30 @@ pub trait VideoDecoderExt: 'static { #[doc(alias = "get_pending_frame_size")] fn pending_frame_size(&self) -> usize; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "gst_video_decoder_get_processed_subframe_index")] + #[doc(alias = "get_processed_subframe_index")] + fn processed_subframe_index(&self, frame: &VideoCodecFrame) -> u32; + #[doc(alias = "gst_video_decoder_get_qos_proportion")] #[doc(alias = "get_qos_proportion")] fn qos_proportion(&self) -> f64; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "gst_video_decoder_get_subframe_mode")] + #[doc(alias = "get_subframe_mode")] + fn is_subframe_mode(&self) -> bool; + #[doc(alias = "gst_video_decoder_have_frame")] fn have_frame(&self) -> gst::FlowReturn; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "gst_video_decoder_have_last_subframe")] + fn have_last_subframe(&self, frame: &VideoCodecFrame) -> gst::FlowReturn; + #[doc(alias = "gst_video_decoder_merge_tags")] fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); @@ -121,6 +154,11 @@ pub trait VideoDecoderExt: 'static { #[doc(alias = "gst_video_decoder_set_packetized")] fn set_packetized(&self, packetized: bool); + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "gst_video_decoder_set_subframe_mode")] + fn set_subframe_mode(&self, subframe_mode: bool); + #[doc(alias = "gst_video_decoder_set_use_default_pad_acceptcaps")] fn set_use_default_pad_acceptcaps(&self, use_: bool); @@ -198,6 +236,28 @@ impl> VideoDecoderExt for O { } } + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + fn drop_subframe(&self, frame: &VideoCodecFrame) -> gst::FlowReturn { + unsafe { + from_glib(ffi::gst_video_decoder_drop_subframe( + self.as_ref().to_glib_none().0, + frame.to_glib_full(), + )) + } + } + + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + fn finish_subframe(&self, frame: &VideoCodecFrame) -> gst::FlowReturn { + unsafe { + from_glib(ffi::gst_video_decoder_finish_subframe( + self.as_ref().to_glib_none().0, + frame.to_glib_full(), + )) + } + } + fn buffer_pool(&self) -> Option { unsafe { from_glib_full(ffi::gst_video_decoder_get_buffer_pool( @@ -210,6 +270,17 @@ impl> VideoDecoderExt for O { unsafe { ffi::gst_video_decoder_get_estimate_rate(self.as_ref().to_glib_none().0) } } + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + fn input_subframe_index(&self, frame: &VideoCodecFrame) -> u32 { + unsafe { + ffi::gst_video_decoder_get_input_subframe_index( + self.as_ref().to_glib_none().0, + frame.to_glib_none().0, + ) + } + } + fn max_decode_time(&self, frame: &VideoCodecFrame) -> gst::ClockTimeDiff { unsafe { ffi::gst_video_decoder_get_max_decode_time( @@ -253,10 +324,31 @@ impl> VideoDecoderExt for O { unsafe { ffi::gst_video_decoder_get_pending_frame_size(self.as_ref().to_glib_none().0) } } + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + fn processed_subframe_index(&self, frame: &VideoCodecFrame) -> u32 { + unsafe { + ffi::gst_video_decoder_get_processed_subframe_index( + self.as_ref().to_glib_none().0, + frame.to_glib_none().0, + ) + } + } + fn qos_proportion(&self) -> f64 { unsafe { ffi::gst_video_decoder_get_qos_proportion(self.as_ref().to_glib_none().0) } } + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + fn is_subframe_mode(&self) -> bool { + unsafe { + from_glib(ffi::gst_video_decoder_get_subframe_mode( + self.as_ref().to_glib_none().0, + )) + } + } + fn have_frame(&self) -> gst::FlowReturn { unsafe { from_glib(ffi::gst_video_decoder_have_frame( @@ -265,6 +357,17 @@ impl> VideoDecoderExt for O { } } + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + fn have_last_subframe(&self, frame: &VideoCodecFrame) -> gst::FlowReturn { + unsafe { + from_glib(ffi::gst_video_decoder_have_last_subframe( + self.as_ref().to_glib_none().0, + frame.to_glib_none().0, + )) + } + } + fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode) { unsafe { ffi::gst_video_decoder_merge_tags( @@ -345,6 +448,17 @@ impl> VideoDecoderExt for O { } } + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + fn set_subframe_mode(&self, subframe_mode: bool) { + unsafe { + ffi::gst_video_decoder_set_subframe_mode( + self.as_ref().to_glib_none().0, + subframe_mode.into_glib(), + ); + } + } + fn set_use_default_pad_acceptcaps(&self, use_: bool) { unsafe { ffi::gst_video_decoder_set_use_default_pad_acceptcaps( diff --git a/gstreamer-video/sys/build.rs b/gstreamer-video/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-video/sys/build.rs +++ b/gstreamer-video/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-video/sys/src/lib.rs b/gstreamer-video/sys/src/lib.rs index be33fa57c..e4938a8c2 100644 --- a/gstreamer-video/sys/src/lib.rs +++ b/gstreamer-video/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -649,7 +649,6 @@ impl ::std::fmt::Debug for GstVideoCodecFrame_abidata { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoCodecFrame_abidata @ {:p}", self)) .field("ABI", unsafe { &self.ABI }) - .field("padding", unsafe { &self.padding }) .finish() } } @@ -1116,14 +1115,12 @@ pub struct GstVideoCodecFrame_abidata_ABI { pub ts: gst::GstClockTime, pub ts2: gst::GstClockTime, pub num_subframes: c_uint, + pub subframes_processed: c_uint, } 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 @ {:p}", self)) - .field("ts", &self.ts) - .field("ts2", &self.ts2) - .field("num_subframes", &self.num_subframes) .finish() } } @@ -1136,7 +1133,9 @@ pub struct GstVideoCodecState { pub caps: *mut gst::GstCaps, pub codec_data: *mut gst::GstBuffer, pub allocation_caps: *mut gst::GstCaps, - pub padding: [gpointer; 19], + pub mastering_display_info: *mut GstVideoMasteringDisplayInfo, + pub content_light_level: *mut GstVideoContentLightLevel, + pub padding: [gpointer; 17], } impl ::std::fmt::Debug for GstVideoCodecState { @@ -1146,6 +1145,8 @@ impl ::std::fmt::Debug for GstVideoCodecState { .field("caps", &self.caps) .field("codec_data", &self.codec_data) .field("allocation_caps", &self.allocation_caps) + .field("mastering_display_info", &self.mastering_display_info) + .field("content_light_level", &self.content_light_level) .finish() } } @@ -3494,10 +3495,22 @@ extern "C" { dec: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_video_decoder_drop_subframe( + dec: *mut GstVideoDecoder, + frame: *mut GstVideoCodecFrame, + ) -> gst::GstFlowReturn; pub fn gst_video_decoder_finish_frame( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_video_decoder_finish_subframe( + decoder: *mut GstVideoDecoder, + frame: *mut GstVideoCodecFrame, + ) -> gst::GstFlowReturn; pub fn gst_video_decoder_get_allocator( decoder: *mut GstVideoDecoder, allocator: *mut *mut gst::GstAllocator, @@ -3512,6 +3525,12 @@ extern "C" { frame_number: c_int, ) -> *mut GstVideoCodecFrame; pub fn gst_video_decoder_get_frames(decoder: *mut GstVideoDecoder) -> *mut glib::GList; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_video_decoder_get_input_subframe_index( + decoder: *mut GstVideoDecoder, + frame: *mut GstVideoCodecFrame, + ) -> c_uint; pub fn gst_video_decoder_get_latency( decoder: *mut GstVideoDecoder, min_latency: *mut gst::GstClockTime, @@ -3534,8 +3553,23 @@ extern "C" { ) -> *mut GstVideoCodecState; pub fn gst_video_decoder_get_packetized(decoder: *mut GstVideoDecoder) -> gboolean; pub fn gst_video_decoder_get_pending_frame_size(decoder: *mut GstVideoDecoder) -> size_t; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_video_decoder_get_processed_subframe_index( + decoder: *mut GstVideoDecoder, + frame: *mut GstVideoCodecFrame, + ) -> c_uint; pub fn gst_video_decoder_get_qos_proportion(decoder: *mut GstVideoDecoder) -> c_double; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_video_decoder_get_subframe_mode(decoder: *mut GstVideoDecoder) -> gboolean; pub fn gst_video_decoder_have_frame(decoder: *mut GstVideoDecoder) -> gst::GstFlowReturn; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_video_decoder_have_last_subframe( + decoder: *mut GstVideoDecoder, + frame: *mut GstVideoCodecFrame, + ) -> gst::GstFlowReturn; pub fn gst_video_decoder_merge_tags( decoder: *mut GstVideoDecoder, tags: *const gst::GstTagList, @@ -3587,6 +3621,12 @@ extern "C" { reference: *mut GstVideoCodecState, ) -> *mut GstVideoCodecState; pub fn gst_video_decoder_set_packetized(decoder: *mut GstVideoDecoder, packetized: gboolean); + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_video_decoder_set_subframe_mode( + decoder: *mut GstVideoDecoder, + subframe_mode: gboolean, + ); pub fn gst_video_decoder_set_use_default_pad_acceptcaps( decoder: *mut GstVideoDecoder, use_: gboolean, @@ -4083,6 +4123,14 @@ extern "C" { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_meta_api_get_type() -> GType; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_video_center_rect( + src: *const GstVideoRectangle, + dst: *const GstVideoRectangle, + result: *mut GstVideoRectangle, + scaling: gboolean, + ); pub fn gst_video_chroma_from_string(s: *const c_char) -> GstVideoChromaSite; pub fn gst_video_chroma_resample( resample: *mut GstVideoChromaResample, diff --git a/gstreamer-video/sys/tests/abi.rs b/gstreamer-video/sys/tests/abi.rs index 0855c8cf2..fca5a821b 100644 --- a/gstreamer-video/sys/tests/abi.rs +++ b/gstreamer-video/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_video_sys::*; diff --git a/gstreamer-video/sys/tests/constant.c b/gstreamer-video/sys/tests/constant.c index 981a87c26..00105702b 100644 --- a/gstreamer-video/sys/tests/constant.c +++ b/gstreamer-video/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-video/sys/tests/layout.c b/gstreamer-video/sys/tests/layout.c index 6152c7865..0866c3205 100644 --- a/gstreamer-video/sys/tests/layout.c +++ b/gstreamer-video/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer-webrtc/sys/build.rs b/gstreamer-webrtc/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer-webrtc/sys/build.rs +++ b/gstreamer-webrtc/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer-webrtc/sys/src/lib.rs b/gstreamer-webrtc/sys/src/lib.rs index ad1c0bba5..d8d9e0f7b 100644 --- a/gstreamer-webrtc/sys/src/lib.rs +++ b/gstreamer-webrtc/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -174,6 +174,11 @@ pub struct _GstWebRTCRTPTransceiverClass(c_void); pub type GstWebRTCRTPTransceiverClass = *mut _GstWebRTCRTPTransceiverClass; +#[repr(C)] +pub struct _GstWebRTCSCTPTransportClass(c_void); + +pub type GstWebRTCSCTPTransportClass = *mut _GstWebRTCSCTPTransportClass; + #[repr(C)] #[derive(Copy, Clone)] pub struct GstWebRTCSessionDescription { @@ -251,6 +256,16 @@ impl ::std::fmt::Debug for GstWebRTCRTPTransceiver { } } +#[repr(C)] +pub struct GstWebRTCSCTPTransport(c_void); + +impl ::std::fmt::Debug for GstWebRTCSCTPTransport { + fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { + f.debug_struct(&format!("GstWebRTCSCTPTransport @ {:p}", self)) + .finish() + } +} + #[link(name = "gstwebrtc-1.0")] extern "C" { @@ -425,4 +440,9 @@ extern "C" { //========================================================================= pub fn gst_webrtc_rtp_transceiver_get_type() -> GType; + //========================================================================= + // GstWebRTCSCTPTransport + //========================================================================= + pub fn gst_webrtc_sctp_transport_get_type() -> GType; + } diff --git a/gstreamer-webrtc/sys/tests/abi.rs b/gstreamer-webrtc/sys/tests/abi.rs index 4d3da6e4a..10608a58e 100644 --- a/gstreamer-webrtc/sys/tests/abi.rs +++ b/gstreamer-webrtc/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_webrtc_sys::*; diff --git a/gstreamer-webrtc/sys/tests/constant.c b/gstreamer-webrtc/sys/tests/constant.c index db2e7ffe4..b6fbdc97c 100644 --- a/gstreamer-webrtc/sys/tests/constant.c +++ b/gstreamer-webrtc/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer-webrtc/sys/tests/layout.c b/gstreamer-webrtc/sys/tests/layout.c index 0b0435eb6..ff56d0a90 100644 --- a/gstreamer-webrtc/sys/tests/layout.c +++ b/gstreamer-webrtc/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer/src/auto/element_factory.rs b/gstreamer/src/auto/element_factory.rs index 11ddae30c..87125f4e8 100644 --- a/gstreamer/src/auto/element_factory.rs +++ b/gstreamer/src/auto/element_factory.rs @@ -75,6 +75,39 @@ impl ElementFactory { } } + //#[cfg(any(feature = "v1_20", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + //#[doc(alias = "gst_element_factory_create_full")] + //pub fn create_full(&self, first: Option<&str>, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> Option { + // unsafe { TODO: call ffi:gst_element_factory_create_full() } + //} + + //#[cfg(any(feature = "v1_20", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + //#[doc(alias = "gst_element_factory_create_valist")] + //pub fn create_valist(&self, first: Option<&str>, properties: /*Unknown conversion*//*Unimplemented*/Unsupported) -> Option { + // unsafe { TODO: call ffi:gst_element_factory_create_valist() } + //} + + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "gst_element_factory_create_with_properties")] + pub fn create_with_properties( + &self, + n: u32, + names: Option<&str>, + values: Option<&glib::Value>, + ) -> Option { + unsafe { + from_glib_none(ffi::gst_element_factory_create_with_properties( + self.to_glib_none().0, + n, + names.to_glib_none().0, + values.to_glib_none().0, + )) + } + } + #[doc(alias = "gst_element_factory_get_element_type")] #[doc(alias = "get_element_type")] pub fn element_type(&self) -> glib::types::Type { @@ -204,6 +237,40 @@ impl ElementFactory { .ok_or_else(|| glib::bool_error!("Failed to create element from factory name")) } } + + //#[cfg(any(feature = "v1_20", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + //#[doc(alias = "gst_element_factory_make_full")] + //pub fn make_full(factoryname: &str, first: Option<&str>, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> Option { + // unsafe { TODO: call ffi:gst_element_factory_make_full() } + //} + + //#[cfg(any(feature = "v1_20", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + //#[doc(alias = "gst_element_factory_make_valist")] + //pub fn make_valist(factoryname: &str, first: Option<&str>, properties: /*Unknown conversion*//*Unimplemented*/Unsupported) -> Option { + // unsafe { TODO: call ffi:gst_element_factory_make_valist() } + //} + + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + #[doc(alias = "gst_element_factory_make_with_properties")] + pub fn make_with_properties( + factoryname: &str, + n: u32, + names: Option<&str>, + values: Option<&glib::Value>, + ) -> Option { + assert_initialized_main_thread!(); + unsafe { + from_glib_none(ffi::gst_element_factory_make_with_properties( + factoryname.to_glib_none().0, + n, + names.to_glib_none().0, + values.to_glib_none().0, + )) + } + } } unsafe impl Send for ElementFactory {} diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index 8cbfb9607..1b3795c83 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 @ 3158f69) -from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) diff --git a/gstreamer/sys/build.rs b/gstreamer/sys/build.rs index 7acf015d3..65da173c5 100644 --- a/gstreamer/sys/build.rs +++ b/gstreamer/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #[cfg(not(feature = "dox"))] diff --git a/gstreamer/sys/src/lib.rs b/gstreamer/sys/src/lib.rs index cd3d513ed..e4f5b91ea 100644 --- a/gstreamer/sys/src/lib.rs +++ b/gstreamer/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] @@ -7732,6 +7732,24 @@ extern "C" { factoryname: *const c_char, name: *const c_char, ) -> *mut GstElement; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_element_factory_make_full( + factoryname: *const c_char, + first: *const c_char, + ... + ) -> *mut GstElement; + //#[cfg(any(feature = "v1_20", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + //pub fn gst_element_factory_make_valist(factoryname: *const c_char, first: *const c_char, properties: /*Unimplemented*/va_list) -> *mut GstElement; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_element_factory_make_with_properties( + factoryname: *const c_char, + n: c_uint, + names: *mut *const c_char, + values: *const gobject::GValue, + ) -> *mut GstElement; pub fn gst_element_factory_can_sink_all_caps( factory: *mut GstElementFactory, caps: *const GstCaps, @@ -7752,6 +7770,24 @@ extern "C" { factory: *mut GstElementFactory, name: *const c_char, ) -> *mut GstElement; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_element_factory_create_full( + factory: *mut GstElementFactory, + first: *const c_char, + ... + ) -> *mut GstElement; + //#[cfg(any(feature = "v1_20", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + //pub fn gst_element_factory_create_valist(factory: *mut GstElementFactory, first: *const c_char, properties: /*Unimplemented*/va_list) -> *mut GstElement; + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn gst_element_factory_create_with_properties( + factory: *mut GstElementFactory, + n: c_uint, + names: *mut *const c_char, + values: *const gobject::GValue, + ) -> *mut GstElement; pub fn gst_element_factory_get_element_type(factory: *mut GstElementFactory) -> GType; pub fn gst_element_factory_get_metadata( factory: *mut GstElementFactory, diff --git a/gstreamer/sys/tests/abi.rs b/gstreamer/sys/tests/abi.rs index 3575ca684..120d1cd90 100644 --- a/gstreamer/sys/tests/abi.rs +++ b/gstreamer/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT use gstreamer_sys::*; diff --git a/gstreamer/sys/tests/constant.c b/gstreamer/sys/tests/constant.c index 7b249bd96..f8d58d420 100644 --- a/gstreamer/sys/tests/constant.c +++ b/gstreamer/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h" diff --git a/gstreamer/sys/tests/layout.c b/gstreamer/sys/tests/layout.c index 14a9cced0..5b9cb4f24 100644 --- a/gstreamer/sys/tests/layout.c +++ b/gstreamer/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ 3158f69) -// from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377) -// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 831b444) +// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a) +// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67) +// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae) // DO NOT EDIT #include "manual.h"