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 /net/webrtchttp | |
parent | 86776be58c5d7e8607653edcd719ac1f0ba8d992 (diff) |
Move from `imp.instance()` to `imp.obj()`
It's doing the same thing and is shorter.
Diffstat (limited to 'net/webrtchttp')
-rw-r--r-- | net/webrtchttp/src/whipsink/imp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/webrtchttp/src/whipsink/imp.rs b/net/webrtchttp/src/whipsink/imp.rs index b23613972..ac7a5ebc5 100644 --- a/net/webrtchttp/src/whipsink/imp.rs +++ b/net/webrtchttp/src/whipsink/imp.rs @@ -137,7 +137,7 @@ impl ElementImpl for WhipSink { let sink_pad = gst::GhostPad::new(Some(&wb_sink_pad.name()), gst::PadDirection::Sink); sink_pad.set_target(Some(&wb_sink_pad)).unwrap(); - self.instance().add_pad(&sink_pad).unwrap(); + self.obj().add_pad(&sink_pad).unwrap(); Some(sink_pad.upcast()) } @@ -234,7 +234,7 @@ impl ObjectImpl for WhipSink { fn constructed(&self) { self.parent_constructed(); - let obj = self.instance(); + let obj = self.obj(); obj.set_suppressed_flags(gst::ElementFlags::SINK | gst::ElementFlags::SOURCE); obj.set_element_flags(gst::ElementFlags::SINK); obj.add(&self.webrtcbin).unwrap(); |