diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-10-23 23:03:22 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-10-23 23:08:46 +0300 |
commit | 9a68f6e221576f94e153f5f20e499b22745621ec (patch) | |
tree | 776a587d54578bc7dff1fe432bf3008308bffb79 /generic/threadshare/src/appsrc/imp.rs | |
parent | 86776be58c5d7e8607653edcd719ac1f0ba8d992 (diff) |
Move from `imp.instance()` to `imp.obj()`
It's doing the same thing and is shorter.
Diffstat (limited to 'generic/threadshare/src/appsrc/imp.rs')
-rw-r--r-- | generic/threadshare/src/appsrc/imp.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/threadshare/src/appsrc/imp.rs b/generic/threadshare/src/appsrc/imp.rs index f525c9a07..fb32ddf75 100644 --- a/generic/threadshare/src/appsrc/imp.rs +++ b/generic/threadshare/src/appsrc/imp.rs @@ -315,7 +315,7 @@ impl AppSrc { let do_timestamp = self.settings.lock().unwrap().do_timestamp; if do_timestamp { - let elem = self.instance(); + let elem = self.obj(); if let Some(clock) = elem.clock() { let base_time = elem.base_time(); let now = clock.time(); @@ -384,7 +384,7 @@ impl AppSrc { *self.sender.lock().unwrap() = Some(sender); self.task - .prepare(AppSrcTask::new(self.instance().clone(), receiver), context) + .prepare(AppSrcTask::new(self.obj().clone(), receiver), context) .block_on()?; gst::debug!(CAT, imp: self, "Prepared"); @@ -556,7 +556,7 @@ impl ObjectImpl for AppSrc { fn constructed(&self) { self.parent_constructed(); - let obj = self.instance(); + let obj = self.obj(); obj.add_pad(self.src_pad.gst_pad()).unwrap(); obj.set_element_flags(gst::ElementFlags::SOURCE); } |