diff options
author | François Laignel <fengalin@free.fr> | 2021-04-12 15:49:54 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2021-04-12 16:57:19 +0300 |
commit | 06accc8d98cc2876bcacfc6f9e097af690b4e64f (patch) | |
tree | e4f056143e5257d49b367dd28ef5fecaa1df9ebc /generic/threadshare/src/queue/imp.rs | |
parent | c3fb55f235f7feb1ab737a64f8d3d53d03a81c7a (diff) |
fix-getters-{def,calls} pass
Diffstat (limited to 'generic/threadshare/src/queue/imp.rs')
-rw-r--r-- | generic/threadshare/src/queue/imp.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/generic/threadshare/src/queue/imp.rs b/generic/threadshare/src/queue/imp.rs index ba3c0ae2a..cff65e292 100644 --- a/generic/threadshare/src/queue/imp.rs +++ b/generic/threadshare/src/queue/imp.rs @@ -300,17 +300,17 @@ impl PadSrcHandler for QueuePadSrcHandler { gst_log!(CAT, obj: pad.gst_pad(), "Upstream returned {:?}", new_query); - let (flags, min, max, align) = new_query.get_result(); + let (flags, min, max, align) = new_query.result(); q.set(flags, min, max, align); q.add_scheduling_modes( &new_query - .get_scheduling_modes() + .scheduling_modes() .iter() .cloned() .filter(|m| m != &gst::PadMode::Pull) .collect::<Vec<_>>(), ); - gst_log!(CAT, obj: pad.gst_pad(), "Returning {:?}", q.get_mut_query()); + gst_log!(CAT, obj: pad.gst_pad(), "Returning {:?}", q.query_mut()); return true; } @@ -573,9 +573,7 @@ impl Queue { } let schedule_now = match item { - DataQueueItem::Event(ref ev) if ev.get_type() != gst::EventType::Eos => { - false - } + DataQueueItem::Event(ref ev) if ev.type_() != gst::EventType::Eos => false, _ => true, }; @@ -777,7 +775,7 @@ impl ObjectImpl for Queue { pspec: &glib::ParamSpec, ) { let mut settings = self.settings.lock().unwrap(); - match pspec.get_name() { + match pspec.name() { "max-size-buffers" => { settings.max_size_buffers = value.get_some().expect("type checked upstream"); } @@ -802,7 +800,7 @@ impl ObjectImpl for Queue { fn get_property(&self, _obj: &Self::Type, _id: usize, pspec: &glib::ParamSpec) -> glib::Value { let settings = self.settings.lock().unwrap(); - match pspec.get_name() { + match pspec.name() { "max-size-buffers" => settings.max_size_buffers.to_value(), "max-size-bytes" => settings.max_size_bytes.to_value(), "max-size-time" => settings.max_size_time.to_value(), |