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/appsrc/imp.rs | |
parent | c3fb55f235f7feb1ab737a64f8d3d53d03a81c7a (diff) |
fix-getters-{def,calls} pass
Diffstat (limited to 'generic/threadshare/src/appsrc/imp.rs')
-rw-r--r-- | generic/threadshare/src/appsrc/imp.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/threadshare/src/appsrc/imp.rs b/generic/threadshare/src/appsrc/imp.rs index ba4596593..932c6801b 100644 --- a/generic/threadshare/src/appsrc/imp.rs +++ b/generic/threadshare/src/appsrc/imp.rs @@ -235,11 +235,11 @@ impl PadSrcHandler for AppSrcPadHandler { } QueryView::Caps(ref mut q) => { let caps = if let Some(caps) = self.0.configured_caps.lock().unwrap().as_ref() { - q.get_filter() + q.filter() .map(|f| f.intersect_with_mode(caps, gst::CapsIntersectMode::First)) .unwrap_or_else(|| caps.clone()) } else { - q.get_filter() + q.filter() .map(|f| f.to_owned()) .unwrap_or_else(gst::Caps::new_any) }; @@ -386,9 +386,9 @@ impl AppSrc { let do_timestamp = self.settings.lock().unwrap().do_timestamp; if do_timestamp { - if let Some(clock) = element.get_clock() { - let base_time = element.get_base_time(); - let now = clock.get_time(); + if let Some(clock) = element.clock() { + let base_time = element.base_time(); + let now = clock.time(); let buffer = buffer.make_mut(); buffer.set_dts(now - base_time); @@ -623,7 +623,7 @@ impl ObjectImpl for AppSrc { pspec: &glib::ParamSpec, ) { let mut settings = self.settings.lock().unwrap(); - match pspec.get_name() { + match pspec.name() { "context" => { settings.context = value .get() @@ -648,7 +648,7 @@ impl ObjectImpl for AppSrc { 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() { "context" => settings.context.to_value(), "context-wait" => settings.context_wait.to_value(), "caps" => settings.caps.to_value(), |