From 4079f4b3c4598b8c60d6139260ac057cabba33fe Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 9 May 2022 08:44:33 -0500 Subject: [PATCH] Fix mismatched gender codes. --- src/backends/av_foundation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/av_foundation.rs b/src/backends/av_foundation.rs index cf657e1..2b1184a 100644 --- a/src/backends/av_foundation.rs +++ b/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] };