diff --git a/Gir_GstApp.toml b/Gir_GstApp.toml index 6274f8628..88fe2797f 100644 --- a/Gir_GstApp.toml +++ b/Gir_GstApp.toml @@ -71,6 +71,11 @@ trait = false # Pass by value ignore = true + [[object.function]] + name = "push_buffer_list" + # Pass by value + ignore = true + [[object.signal]] name = "end-of-stream" # Action signal @@ -81,6 +86,11 @@ trait = false # Action signal ignore = true + [[object.signal]] + name = "push-buffer-list" + # Action signal + ignore = true + [[object.signal]] name = "push-sample" # Action signal @@ -117,6 +127,11 @@ name = "Gst.Buffer" status = "manual" ref_mode = "ref" +[[object]] +name = "Gst.BufferList" +status = "manual" +ref_mode = "ref" + [[object]] name = "Gst.Sample" status = "manual" diff --git a/gstreamer-app/Cargo.toml b/gstreamer-app/Cargo.toml index bf85eb219..3df967895 100644 --- a/gstreamer-app/Cargo.toml +++ b/gstreamer-app/Cargo.toml @@ -31,6 +31,7 @@ optional = true [features] v1_10 = ["gstreamer-sys/v1_10", "gstreamer-base/v1_10", "gstreamer-app-sys/v1_10"] v1_12 = ["gstreamer-sys/v1_12", "gstreamer-base/v1_12", "gstreamer-app-sys/v1_12", "v1_10"] +v1_14 = ["gstreamer-sys/v1_14", "gstreamer-base/v1_14", "gstreamer-app-sys/v1_14", "v1_12"] embed-lgpl-docs = ["rustdoc-stripper"] purge-lgpl-docs = ["rustdoc-stripper"] dox = ["gstreamer-app-sys/dox", "glib/dox", "gstreamer/dox", "gstreamer-base/dox"] diff --git a/gstreamer-app/src/app_src.rs b/gstreamer-app/src/app_src.rs index e87b9fb36..ffa383aae 100644 --- a/gstreamer-app/src/app_src.rs +++ b/gstreamer-app/src/app_src.rs @@ -159,6 +159,16 @@ impl AppSrc { } } + #[cfg(any(feature = "v1_14", feature = "dox"))] + pub fn push_buffer_list(&self, list: gst::BufferList) -> gst::FlowReturn { + unsafe { + from_glib(ffi::gst_app_src_push_buffer_list( + self.to_glib_none().0, + list.into_ptr(), + )) + } + } + pub fn set_callbacks(&self, callbacks: AppSrcCallbacks) { unsafe { ffi::gst_app_src_set_callbacks( diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index 7b94f5e96..cca0022f4 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) +// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e0127) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT diff --git a/gstreamer-app/src/auto/app_src.rs b/gstreamer-app/src/auto/app_src.rs index 088658c89..51bff45bf 100644 --- a/gstreamer-app/src/auto/app_src.rs +++ b/gstreamer-app/src/auto/app_src.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) +// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e0127) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT diff --git a/gstreamer-app/src/auto/enums.rs b/gstreamer-app/src/auto/enums.rs index c985025ce..cb014dbb7 100644 --- a/gstreamer-app/src/auto/enums.rs +++ b/gstreamer-app/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) +// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e0127) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT diff --git a/gstreamer-app/src/auto/flags.rs b/gstreamer-app/src/auto/flags.rs index 82b595c32..3cf2359d8 100644 --- a/gstreamer-app/src/auto/flags.rs +++ b/gstreamer-app/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) +// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e0127) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT diff --git a/gstreamer-app/src/auto/mod.rs b/gstreamer-app/src/auto/mod.rs index 84c27ef5e..7d5b940e7 100644 --- a/gstreamer-app/src/auto/mod.rs +++ b/gstreamer-app/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) +// This file was generated by gir (https://github.com/gtk-rs/gir @ d1e0127) // from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT