diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-06-30 23:57:22 +0300 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2020-07-01 00:28:02 +0300 |
commit | a28455f0ce221558ce56ac0507cf437d8418db8a (patch) | |
tree | e5f6755c0d72d68696ce72ccbec7e963838ed76e /tutorial | |
parent | e2f27e77cefef85c767d8c3bc6817ee6c1596ba6 (diff) |
Update for Element::post_message() signature change
Diffstat (limited to 'tutorial')
-rw-r--r-- | tutorial/src/sinesrc.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tutorial/src/sinesrc.rs b/tutorial/src/sinesrc.rs index ae88dfd1a..0befa1fd7 100644 --- a/tutorial/src/sinesrc.rs +++ b/tutorial/src/sinesrc.rs @@ -315,8 +315,7 @@ impl ObjectImpl for SineSrc { settings.samples_per_buffer = samples_per_buffer; drop(settings); - let _ = - basesrc.post_message(&gst::message::Latency::builder().src(basesrc).build()); + let _ = basesrc.post_message(gst::message::Latency::builder().src(basesrc).build()); } subclass::Property("freq", ..) => { let mut settings = self.settings.lock().unwrap(); @@ -483,7 +482,7 @@ impl BaseSrcImpl for SineSrc { drop(state); - let _ = element.post_message(&gst::message::Latency::builder().src(element).build()); + let _ = element.post_message(gst::message::Latency::builder().src(element).build()); Ok(()) } |