mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
lost iv -
due to previous
This commit is contained in:
parent
46de5a704b
commit
618eceb740
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ fn setup(args: &[String]) -> Setup {
|
|||
|
||||
let initial_volume;
|
||||
if matches.opt_present("initial-volume") && matches.opt_str("initial-volume").unwrap().parse::<i32>().is_ok() {
|
||||
let matches.opt_str("initial-volume").unwrap().parse::<i32>().unwrap();
|
||||
let iv = matches.opt_str("initial-volume").unwrap().parse::<i32>().unwrap();
|
||||
if 0 <= iv && iv <= 100 {
|
||||
initial_volume = iv * 0xFFFF as i32 / 100 ;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue