Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
vikram2784 committed Sep 1, 2024
1 parent 5ca4aff commit 8faadde
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gstreamer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ lazy_static! {
}
})
{
let elemf = gst::ElementFactory::find(elem);
if elemf.is_some() {
v.push(elemf.unwrap())
if let Some(element) = gst::ElementFactory::find(elem) {
v.push(element)
} else {
//println!("couldnt find {:?}", elem);
}
Expand Down

0 comments on commit 8faadde

Please sign in to comment.