fix a warning & the cargo version of ffmpeg4

This commit is contained in:
lif 2020-01-25 12:18:35 -08:00
parent a440c1a190
commit abff72a694
2 changed files with 2 additions and 2 deletions

View File

@ -19,4 +19,4 @@ sdl2 = "^0.32"
crossbeam-channel = "^0.4"
structopt = "^0.3"
# example: ffmpeg_recorder
ffmpeg4 = "*"
ffmpeg4 = "0.4.0"

View File

@ -230,7 +230,7 @@ impl MyEmulator {
}
}
fn input_state_keyboard(&mut self, port: u32, device: &InputDeviceId, index: &InputIndex) -> i16 {
fn input_state_keyboard(&mut self, port: u32, device: &InputDeviceId, _index: &InputIndex) -> i16 {
if port != 0 { // Keyboard only controls the first port.
return 0;
}