diff options
Diffstat (limited to 'tutorial/src/progressbin/imp.rs')
-rw-r--r-- | tutorial/src/progressbin/imp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/src/progressbin/imp.rs b/tutorial/src/progressbin/imp.rs index 713e88ed7..94a3909fd 100644 --- a/tutorial/src/progressbin/imp.rs +++ b/tutorial/src/progressbin/imp.rs @@ -108,7 +108,7 @@ impl ObjectImpl for ProgressBin { "output" => { let mut output_type = self.output_type.lock().unwrap(); let new_output_type = value - .get_some::<ProgressBinOutput>() + .get::<ProgressBinOutput>() .expect("type checked upstream"); gst_info!( CAT, @@ -230,7 +230,7 @@ impl BinImpl for ProgressBin { .unwrap_or(false) => { let s = msg.structure().unwrap(); - if let Ok(percent) = s.get_some::<f64>("percent-double") { + if let Ok(percent) = s.get::<f64>("percent-double") { let output_type = *self.output_type.lock().unwrap(); match output_type { ProgressBinOutput::Println => println!("progress: {:5.1}%", percent), |