diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-01-17 20:36:41 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-01-17 20:36:41 +0300 |
commit | b2d017242204d5b395c52b101f6956985a57d911 (patch) | |
tree | 0c2f131af70dd06e28a0d7df45dca0e8b1707ab0 /generic/threadshare/src/appsrc/imp.rs | |
parent | 75d348709c74cb62f9b4dd64fb310ed311f22ac9 (diff) |
Replace `Foo::from_instance(foo)` with `foo.imp()`
Diffstat (limited to 'generic/threadshare/src/appsrc/imp.rs')
-rw-r--r-- | generic/threadshare/src/appsrc/imp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/threadshare/src/appsrc/imp.rs b/generic/threadshare/src/appsrc/imp.rs index ec21fef67..547c93757 100644 --- a/generic/threadshare/src/appsrc/imp.rs +++ b/generic/threadshare/src/appsrc/imp.rs @@ -586,7 +586,7 @@ impl ObjectImpl for AppSrc { .class_handler(|_, args| { let element = args[0].get::<super::AppSrc>().expect("signal arg"); let buffer = args[1].get::<gst::Buffer>().expect("signal arg"); - let appsrc = AppSrc::from_instance(&element); + let appsrc = element.imp(); Some(appsrc.push_buffer(&element, buffer).to_value()) }) @@ -595,7 +595,7 @@ impl ObjectImpl for AppSrc { .action() .class_handler(|_, args| { let element = args[0].get::<super::AppSrc>().expect("signal arg"); - let appsrc = AppSrc::from_instance(&element); + let appsrc = element.imp(); Some(appsrc.end_of_stream(&element).to_value()) }) |