We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0aea54f + 7e592eb commit 4b7caeeCopy full SHA for 4b7caee
BGMApp/BGMApp/BGMPlayThrough.cpp
@@ -933,9 +933,8 @@ void BGMPlayThrough::HandleBGMDeviceIsRunningSomewhereOtherThanBGMApp(BGMPlay
933
// static
934
bool BGMPlayThrough::IsRunningSomewhereOtherThanBGMApp(const BGMAudioDevice& inBGMDevice)
935
{
936
- return CFBooleanGetValue(
937
- static_cast<CFBooleanRef>(
938
- inBGMDevice.GetPropertyData_CFType(kBGMRunningSomewhereOtherThanBGMAppAddress)));
+ auto type = inBGMDevice.GetPropertyData_CFType(kBGMRunningSomewhereOtherThanBGMAppAddress);
+ return type && CFBooleanGetValue(static_cast<CFBooleanRef>(type));
939
}
940
941
#pragma mark IOProcs
0 commit comments