Fix mismatched gender codes.

pull/26/head
Nolan Darilek 7 months ago
parent 4283623723
commit 4079f4b3c4
  1. 4
      src/backends/av_foundation.rs

@ -304,8 +304,8 @@ impl Backend for AvFoundation {
let name: CFString = unsafe { msg_send![*v as *const Object, name] };
let gender: i64 = unsafe { msg_send![*v as *const Object, gender] };
let gender = match gender {
0 => Some(Gender::Male),
1 => Some(Gender::Female),
1 => Some(Gender::Male),
2 => Some(Gender::Female),
_ => None,
};
let language: CFString = unsafe { msg_send![*v as *const Object, language] };

Loading…
Cancel
Save