Commit d8c0c2fc authored by David Fuhrmann's avatar David Fuhrmann

auhal: add error message when format change failed

parent 4f4b7984
...@@ -1072,8 +1072,11 @@ static void Stop(audio_output_t *p_aout) ...@@ -1072,8 +1072,11 @@ static void Stop(audio_output_t *p_aout)
if (err != noErr) if (err != noErr)
msg_Err(p_aout, "Failed to destroy Process ID [%4.4s]", (char *)&err); msg_Err(p_aout, "Failed to destroy Process ID [%4.4s]", (char *)&err);
if (p_sys->b_revert) if (p_sys->b_revert) {
AudioStreamChangeFormat(p_aout, p_sys->i_stream_id, p_sys->sfmt_revert); if (!AudioStreamChangeFormat(p_aout, p_sys->i_stream_id, p_sys->sfmt_revert)) {
msg_Err(p_aout, "failed to revert stream format in close");
}
}
if (p_sys->b_changed_mixing && p_sys->sfmt_revert.mFormatID != kAudioFormat60958AC3) { if (p_sys->b_changed_mixing && p_sys->sfmt_revert.mFormatID != kAudioFormat60958AC3) {
int b_mix; int b_mix;
......
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