diff options
author | François Laignel <fengalin@free.fr> | 2020-06-25 01:33:57 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2020-06-25 12:26:32 +0300 |
commit | e40267e95db3b5e7fa0f4eaeeb7f889a92f91a0a (patch) | |
tree | d53733bb9c203e55961e8e8d82bff3a092b23b5c /tutorial | |
parent | fe274ac6e7d8a812766631b563b7ee95fc7453e9 (diff) |
event,message,query: update instantiation
See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/532
Diffstat (limited to 'tutorial')
-rw-r--r-- | tutorial/src/sinesrc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/src/sinesrc.rs b/tutorial/src/sinesrc.rs index 09a9ca6e..ae88dfd1 100644 --- a/tutorial/src/sinesrc.rs +++ b/tutorial/src/sinesrc.rs @@ -316,7 +316,7 @@ impl ObjectImpl for SineSrc { drop(settings); let _ = - basesrc.post_message(&gst::Message::new_latency().src(Some(basesrc)).build()); + basesrc.post_message(&gst::message::Latency::builder().src(basesrc).build()); } subclass::Property("freq", ..) => { let mut settings = self.settings.lock().unwrap(); @@ -483,7 +483,7 @@ impl BaseSrcImpl for SineSrc { drop(state); - let _ = element.post_message(&gst::Message::new_latency().src(Some(element)).build()); + let _ = element.post_message(&gst::message::Latency::builder().src(element).build()); Ok(()) } |