Commit b3ab0567 authored by znakeeye's avatar znakeeye Committed by David Reid

Final tweaks. Removed unnecessary if statement.

parent 7158cf58
...@@ -38451,9 +38451,9 @@ static ma_result ma_device_reinit__aaudio(ma_device* pDevice, ma_device_type dev ...@@ -38451,9 +38451,9 @@ static ma_result ma_device_reinit__aaudio(ma_device* pDevice, ma_device_type dev
/* We got disconnected! Retry a few times, until we find a connected device! */ /* We got disconnected! Retry a few times, until we find a connected device! */
iAttempt = 0; iAttempt = 0;
while (iAttempt++ < maxAttempts) { while (iAttempt++ < maxAttempts) {
/* Device tearing down? No need to reroute! Callers should continue as normal. */ /* Device tearing down? No need to reroute! */
if (ma_atomic_bool32_get(&pDevice->aaudio.isTearingDown)) { if (ma_atomic_bool32_get(&pDevice->aaudio.isTearingDown)) {
result = MA_SUCCESS; result = MA_SUCCESS; /* Caller should continue as normal. */
break; break;
} }
...@@ -38524,7 +38524,6 @@ static ma_result ma_device_reinit__aaudio(ma_device* pDevice, ma_device_type dev ...@@ -38524,7 +38524,6 @@ static ma_result ma_device_reinit__aaudio(ma_device* pDevice, ma_device_type dev
break; break;
} }
if (result == MA_SUCCESS) {
/* We'll only ever do this in response to a reroute. */ /* We'll only ever do this in response to a reroute. */
ma_device__on_notification_rerouted(pDevice); ma_device__on_notification_rerouted(pDevice);
...@@ -38543,7 +38542,6 @@ static ma_result ma_device_reinit__aaudio(ma_device* pDevice, ma_device_type dev ...@@ -38543,7 +38542,6 @@ static ma_result ma_device_reinit__aaudio(ma_device* pDevice, ma_device_type dev
ma_device_stop(pDevice); /* Do a full device stop so we set internal state correctly. */ ma_device_stop(pDevice); /* Do a full device stop so we set internal state correctly. */
} }
} }
}
if (result == MA_SUCCESS) { if (result == MA_SUCCESS) {
/* Reroute successful! */ /* Reroute successful! */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment