webrtc: Fix fmt issues

This commit is contained in:
Thibault Saunier 2022-10-18 20:19:15 +02:00
parent 5ab7be6124
commit 0f0dec7fa9
4 changed files with 11 additions and 27 deletions

View file

@ -673,9 +673,7 @@ mod tests {
assert_eq!(peer_id, "producer");
assert_eq!(
sent_message,
p::OutgoingMessage::EndSession(p::EndSessionMessage {
session_id
})
p::OutgoingMessage::EndSession(p::EndSessionMessage { session_id })
);
}
@ -724,9 +722,7 @@ mod tests {
assert_eq!(peer_id, "producer");
assert_eq!(
sent_message,
p::OutgoingMessage::EndSession(p::EndSessionMessage {
session_id
})
p::OutgoingMessage::EndSession(p::EndSessionMessage { session_id })
);
}

View file

@ -1278,12 +1278,7 @@ impl ObjectImpl for BandwidthEstimator {
PROPERTIES.as_ref()
}
fn set_property(
&self,
_id: usize,
value: &glib::Value,
pspec: &glib::ParamSpec,
) {
fn set_property(&self, _id: usize, value: &glib::Value, pspec: &glib::ParamSpec) {
match pspec.name() {
"min-bitrate" => {
let mut state = self.state.lock().unwrap();

View file

@ -392,12 +392,7 @@ impl ObjectImpl for Signaller {
PROPERTIES.as_ref()
}
fn set_property(
&self,
_id: usize,
value: &glib::Value,
pspec: &glib::ParamSpec,
) {
fn set_property(&self, _id: usize, value: &glib::Value, pspec: &glib::ParamSpec) {
match pspec.name() {
"address" => {
let address: Option<_> = value.get().expect("type checked upstream");

View file

@ -1164,9 +1164,12 @@ impl WebRTCSink {
payload: pt,
})
} else {
gst::warning!(CAT, imp: self,
"Too many formats for available payload type range, ignoring {}",
s);
gst::warning!(
CAT,
imp: self,
"Too many formats for available payload type range, ignoring {}",
s
);
None
}
})
@ -2426,12 +2429,7 @@ impl ObjectImpl for WebRTCSink {
PROPERTIES.as_ref()
}
fn set_property(
&self,
_id: usize,
value: &glib::Value,
pspec: &glib::ParamSpec,
) {
fn set_property(&self, _id: usize, value: &glib::Value, pspec: &glib::ParamSpec) {
match pspec.name() {
"video-caps" => {
let mut settings = self.settings.lock().unwrap();