Skip to content

Commit

Permalink
Init gst
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Aug 25, 2022
1 parent fad4a89 commit c1a542a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pipeline/element_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ mod tests {

#[test]
fn element_properties_general_builder() {
gst::init().unwrap();

let elem_props = ElementProperties::builder_general()
.field("string-prop", "hi")
.field("boolean-prop", true)
Expand All @@ -247,6 +249,8 @@ mod tests {

#[test]
fn element_properties_map_builder() {
gst::init().unwrap();

let props_map = ElementFactoryPropertiesMap::new("vp8enc")
.field("cq-level", 13)
.field("resize-allowed", false);
Expand All @@ -271,6 +275,8 @@ mod tests {

#[test]
fn element_factory_properties_map_field_from_str() {
gst::init().unwrap();

let prop_map_s = ElementFactoryPropertiesMap::new("vp8enc")
.field("threads", 16)
.field_from_str("keyframe-mode", "disabled")
Expand Down

0 comments on commit c1a542a

Please sign in to comment.