mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-19 15:46:00 +00:00
webrtc: Fix fmt issues
This commit is contained in:
parent
5ab7be6124
commit
0f0dec7fa9
4 changed files with 11 additions and 27 deletions
|
@ -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 })
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -1164,9 +1164,12 @@ impl WebRTCSink {
|
|||
payload: pt,
|
||||
})
|
||||
} else {
|
||||
gst::warning!(CAT, imp: self,
|
||||
gst::warning!(
|
||||
CAT,
|
||||
imp: self,
|
||||
"Too many formats for available payload type range, ignoring {}",
|
||||
s);
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue