mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-11 03:35:26 +00:00
webrtcsink: re-indent
This commit is contained in:
parent
c5c92d0467
commit
61c0fdcb5d
1 changed files with 4 additions and 6 deletions
|
@ -589,9 +589,7 @@ impl VideoEncoder {
|
|||
"x264enc" | "nvh264enc" | "vaapih264enc" | "vaapivp8enc" => {
|
||||
(self.element.property::<u32>("bitrate") * 1000) as i32
|
||||
}
|
||||
"nvv4l2h264enc" | "nvv4l2vp8enc" => {
|
||||
(self.element.property::<u32>("bitrate")) as i32
|
||||
}
|
||||
"nvv4l2h264enc" | "nvv4l2vp8enc" => (self.element.property::<u32>("bitrate")) as i32,
|
||||
factory => unimplemented!("Factory {} is currently not supported", factory),
|
||||
}
|
||||
}
|
||||
|
@ -616,9 +614,9 @@ impl VideoEncoder {
|
|||
"x264enc" | "nvh264enc" | "vaapih264enc" | "vaapivp8enc" => self
|
||||
.element
|
||||
.set_property("bitrate", (bitrate / 1000) as u32),
|
||||
"nvv4l2h264enc" | "nvv4l2vp8enc" => self
|
||||
.element
|
||||
.set_property("bitrate", bitrate as u32),
|
||||
"nvv4l2h264enc" | "nvv4l2vp8enc" => {
|
||||
self.element.set_property("bitrate", bitrate as u32)
|
||||
}
|
||||
factory => unimplemented!("Factory {} is currently not supported", factory),
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue