Skip to content

Commit

Permalink
fix: call gst::init on certain tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Nov 18, 2023
1 parent c463992 commit 2993e91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/element_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down
2 changes: 2 additions & 0 deletions src/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 2993e91

Please sign in to comment.