diff options
Diffstat (limited to 'server/src/routes')
| -rw-r--r-- | server/src/routes/ui/node.rs | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs index fbbf012..e7e1c70 100644 --- a/server/src/routes/ui/node.rs +++ b/server/src/routes/ui/node.rs @@ -257,15 +257,17 @@ trait MediaInfoExt {  }  impl MediaInfoExt for MediaInfo {      fn resolution_name(&self) -> &'static str { -        let mut maxw = 0; +        let mut maxdim = 0;          for t in &self.tracks {              match &t.kind { -                SourceTrackKind::Video { width, .. } => maxw = maxw.max(*width), +                SourceTrackKind::Video { width, height, .. } => maxdim = maxdim.max(*width.max(height)),                  _ => (),              }          } -        match maxw { +        match maxdim { +            30720.. => "32K", +            15360.. => "16K",              7680.. => "8K",              3840.. => "4K",              2560.. => "WQHD",  |