Bug 899769 - Fix build of AudioManager.cpp when bluetooth is disabled, r=rlin

This commit is contained in:
Michael Wu 2013-07-30 22:44:48 -04:00
Родитель 313f74bcad
Коммит cd2a9247d7
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -174,6 +174,7 @@ AudioManager::HandleBluetoothStatusChanged(nsISupports* aSubject,
const char* aTopic,
const nsCString aAddress)
{
#ifdef MOZ_B2G_BT
bool status;
if (!strcmp(aTopic, BLUETOOTH_SCO_STATUS_CHANGED_ID)) {
BluetoothHfpManager* hfp =
@ -221,6 +222,7 @@ AudioManager::HandleBluetoothStatusChanged(nsISupports* aSubject,
AudioSystem::setDeviceConnectionState(AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET,
audioState, aAddress.get());
}
#endif
}
nsresult