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 /video/png | |
parent | 86776be58c5d7e8607653edcd719ac1f0ba8d992 (diff) |
Move from `imp.instance()` to `imp.obj()`
It's doing the same thing and is shorter.
Diffstat (limited to 'video/png')
-rw-r--r-- | video/png/src/pngenc/imp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/png/src/pngenc/imp.rs b/video/png/src/pngenc/imp.rs index 5c6551273..2f543d730 100644 --- a/video/png/src/pngenc/imp.rs +++ b/video/png/src/pngenc/imp.rs @@ -295,7 +295,7 @@ impl VideoEncoderImpl for PngEncoder { *self.state.lock() = Some(state); } - let instance = self.instance(); + let instance = self.obj(); let output_state = instance .set_output_state(gst::Caps::builder("image/png").build(), Some(state)) .map_err(|_| gst::loggable_error!(CAT, "Failed to set output state"))?; @@ -335,6 +335,6 @@ impl VideoEncoderImpl for PngEncoder { // There are no such incremental frames in the png format frame.set_flags(gst_video::VideoCodecFrameFlags::SYNC_POINT); frame.set_output_buffer(output_buffer); - self.instance().finish_frame(Some(frame)) + self.obj().finish_frame(Some(frame)) } } |