Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/libaudio-msm7x30/AudioHardware.cpp b/libaudio-msm7x30/AudioHardware.cpp
- index e0f8c60..9c2e5de 100644
- --- a/libaudio-msm7x30/AudioHardware.cpp
- +++ b/libaudio-msm7x30/AudioHardware.cpp
- @@ -737,16 +737,15 @@ AudioStreamOut* AudioHardware::openOutputStream(uint32_t devices, int *format,
- LOGD("AudioHardware::openOutputStream");
- - /* only one output stream allowed */
- + AudioStreamOutMSM72xx* out;
- if (mOutput) {
- - if (status)
- - *status = INVALID_OPERATION;
- -
- - return 0;
- + /* only one output stream allowed */
- + out = mOutput;
- + } else {
- + /* create new output stream */
- + out = new AudioStreamOutMSM72xx();
- }
- - /* create new output stream */
- - AudioStreamOutMSM72xx* out = new AudioStreamOutMSM72xx();
- status_t lStatus = out->set(this, devices, format, channels, sampleRate);
- if (status)
- *status = lStatus;
Add Comment
Please, Sign In to add comment