From 39bb9abc3c2535b006839864878c418f4e9564bf Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Fri, 14 Oct 2022 16:24:51 +0300 Subject: [PATCH] caps: Add .structure() to CapsBuilder Allows us to get the structure, to read fields after adding them to the builder. --- gstreamer/src/caps.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gstreamer/src/caps.rs b/gstreamer/src/caps.rs index 4b54d2d04..e2ed9e8af 100644 --- a/gstreamer/src/caps.rs +++ b/gstreamer/src/caps.rs @@ -934,6 +934,10 @@ impl Builder { .append_structure_full(self.s, self.features); caps } + + pub fn structure(&self) -> &crate::Structure { + &self.s + } } pub enum AnyFeatures {}