mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-23 01:18:11 +00:00
Simplify boolean expression
This commit is contained in:
parent
b91d23521f
commit
a500b5297b
1 changed files with 3 additions and 3 deletions
|
@ -66,13 +66,13 @@ fn connect_ndi(
|
|||
|
||||
for val in receivers.values_mut() {
|
||||
if val.ip == ip || val.stream_name == stream_name {
|
||||
if (val.audio && val.video) || (val.audio && !video) || (val.video && video) {
|
||||
if (val.video || !video) && (val.audio || video) {
|
||||
continue;
|
||||
} else {
|
||||
if video {
|
||||
val.video = video;
|
||||
val.video = true;
|
||||
} else {
|
||||
val.audio = !video;
|
||||
val.audio = true;
|
||||
}
|
||||
return Some(val.id);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue