26 static std::atomic_int g_id_{1};
27 const int id_ = g_id_.fetch_add(1, std::memory_order_relaxed);
31 std::string MakeStr(NSString *str) {
32 return str ? [str UTF8String] :
"";
39 AVMediaSelectionOption *option)
41 MakeStr(option.extendedLanguageTag), GetId()),
49 return [item_.currentMediaSelection selectedMediaOptionInMediaSelectionGroup:group_] == option_;
54 [item_ selectMediaOption:option_ inMediaSelectionGroup:group_];
56 if (group_.allowsEmptySelection)
57 [item_ selectMediaOption:nil inMediaSelectionGroup:group_];
59 [item_ selectMediaOption:group_.defaultOption inMediaSelectionGroup:group_];