зеркало из https://github.com/mozilla/gecko-dev.git
Bug 899769 - Fix build of AudioManager.cpp when bluetooth is disabled, r=rlin
This commit is contained in:
Родитель
313f74bcad
Коммит
cd2a9247d7
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче