From dc763501ae4efce290b0d53dd34374b0b9410730 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Thu, 3 Jun 2021 17:45:53 +0200 Subject: [PATCH] check/harness: Add new 1.19.1 `set_live` function --- gstreamer-check/src/harness.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gstreamer-check/src/harness.rs b/gstreamer-check/src/harness.rs index 33fb18b04..a596e80a9 100644 --- a/gstreamer-check/src/harness.rs +++ b/gstreamer-check/src/harness.rs @@ -398,6 +398,13 @@ impl Harness { } } + #[doc(alias = "gst_harness_set_live")] + #[cfg(any(feature = "v1_20", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] + pub fn set_live(&mut self, is_live: bool) { + unsafe { ffi::gst_harness_set_live(self.0.as_ptr(), is_live.into_glib()) } + } + //pub fn set_propose_allocator>(&mut self, allocator: Option<&P>, params: Option<&gst::AllocationParams>) { // unsafe { TODO: call ffi::gst_harness_set_propose_allocator() } //}