From 2993e91a3fa35e1d4e44478db21bd829fe1601fb Mon Sep 17 00:00:00 2001 From: Dave Patrick Caberto Date: Sat, 18 Nov 2023 13:40:49 +0800 Subject: [PATCH] fix: call gst::init on certain tests --- src/element_properties.rs | 2 ++ src/profile.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/element_properties.rs b/src/element_properties.rs index 7c68cb678..7437c5856 100644 --- a/src/element_properties.rs +++ b/src/element_properties.rs @@ -129,6 +129,8 @@ mod tests { #[test] fn element_properties() { + gst::init().unwrap(); + let element_properties = ElementProperties::builder("vp8enc").build(); let inner_item = element_properties_inner_item(element_properties.clone()); assert_eq!( diff --git a/src/profile.rs b/src/profile.rs index c7fb2fedf..6625cbbe6 100644 --- a/src/profile.rs +++ b/src/profile.rs @@ -611,6 +611,8 @@ mod tests { ) } + gst::init().unwrap(); + let a = new_simple_encoding_profile("x264enc", "opusenc", "webmmux"); assert_eq!( a.unwrap_err().to_string(),