From 2228f882d8b9b53416aa9c39ea607ed6ca3b5a0e Mon Sep 17 00:00:00 2001 From: Maksym Khomenko Date: Tue, 20 Feb 2024 19:29:28 +0200 Subject: [PATCH] webrtcsink: apply rustfmt Part-of: --- net/webrtc/src/webrtcsink/imp.rs | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/net/webrtc/src/webrtcsink/imp.rs b/net/webrtc/src/webrtcsink/imp.rs index ce23f742..02444b0d 100644 --- a/net/webrtc/src/webrtcsink/imp.rs +++ b/net/webrtc/src/webrtcsink/imp.rs @@ -556,8 +556,8 @@ fn make_converter_for_video_caps(caps: &gst::Caps, codec: &Codec) -> Result move | + "handle-ice", + false, + glib::closure!(@watch instance => move | _signaler: glib::Object, session_id: &str, sdp_m_line_index: u32, @@ -1931,7 +1931,7 @@ impl BaseWebRTCSink { .imp() .handle_ice(session_id, Some(sdp_m_line_index), None, candidate); }), - ), + ), session_ended: signaler.connect_closure( "session-ended", @@ -1941,7 +1941,7 @@ impl BaseWebRTCSink { gst::warning!(CAT, "{}", err); } false - }) + }), ), shutdown: signaler.connect_closure( @@ -1949,7 +1949,7 @@ impl BaseWebRTCSink { false, glib::closure!(@watch instance => move |_signaler: glib::Object|{ instance.imp().shutdown(instance); - }) + }), ), }); } @@ -2596,7 +2596,7 @@ impl BaseWebRTCSink { if session.congestion_controller.is_some() { let session_id_str = session_id.to_string(); rtpbin.connect_closure("on-new-ssrc", true, - glib::closure!(@weak-allow-none element, + glib::closure!(@weak-allow-none element, => move |rtpbin: gst::Object, session_id: u32, _src: u32| { let rtp_session = rtpbin.emit_by_name::("get-session", &[&session_id]); @@ -2617,8 +2617,8 @@ impl BaseWebRTCSink { )); } } - }) - ); + }), + ); } let clock = element.clock(); @@ -3729,7 +3729,7 @@ impl ObjectImpl for BaseWebRTCSink { .mutable_ready() .build(), glib::ParamSpecObject::builder::("signaller") - .flags(glib::ParamFlags::READABLE | gst::PARAM_FLAG_MUTABLE_READY) + .flags(glib::ParamFlags::READABLE | gst::PARAM_FLAG_MUTABLE_READY) .blurb("The Signallable object to use to handle WebRTC Signalling") .build(), ]