coreaudio: Notify error in coreaudio_init_out
PATCH 1/1 coreaudio: Notify error in coreaudio_init_out
--- audio/coreaudio.c | 2 ++ 1 file changed, 2 insertions(+)
audio/coreaudio.c +2 -0
@@ -604,6 +604,8 @@ static int coreaudio_init_out(HWVoiceOut *hw, struct audsettings *as,coreaudio_playback_logerr (status,"Could not remove voice property change listener\n" ); } + +return -1 ; }return 0 ;
Signature · 1 line
2.32.0 (Apple Git-132)
Quoted 10 lines · On Samstag, 26. Februar 2022 11:02:48 CET Akihiko Odaki wrote:
Signed-off-by Akihiko Odaki <[email protected]>--- audio/coreaudio.c | 2 ++ 1 file changed, 2 insertions(+)audio/coreaudio.c +0
-0
audio/coreaudio.c static int coreaudio_init_out(HWVoiceOut *hw, struct · line 611
Quoted 8 lines
audio/coreaudio.c +2
-0@@ -604,6 +604,8 @@ static int coreaudio_init_out(HWVoiceOut *hw, struct audsettings *as,coreaudio_playback_logerr (status, "Could not remove voice property change listener\n"); } + + return -1; }return 0 ;
Is this a pure theoretical fix, or does it actually fix an actually encountered misbehaviour? I don't see any explanation in the commit log. I mean the branch here is about removing a listener only.
Best regards,
Christian Schoenebeck
Quoted 18 lines · Christian Schoenebeck
Quoted 17 lines · On Samstag, 26. Februar 2022 11:02:48 CET Akihiko Odaki wrote:
Signed-off-by Akihiko Odaki <[email protected]>--- audio/coreaudio.c | 2 ++ 1 file changed, 2 insertions(+)audio/coreaudio.c +2
-0@@ -604,6 +604,8 @@ static int coreaudio_init_out(HWVoiceOut *hw, struct audsettings *as,coreaudio_playback_logerr (status, "Could not remove voice property change listener\n"); } + + return -1; }
Quoted 10 lines
audio/coreaudio.c static int coreaudio_init_out(HWVoiceOut *hw, struct audsettings *as, · line 611
Quoted 1 line
audio/coreaudio.c +0
-0return 0 ;Is this a pure theoretical fix, or does it actually fix an actually encountered misbehaviour? I don't see any explanation in the commit log. I mean the branch here is about removing a listener only.
Best regards,
Christian Schoenebeck
I saw branching to this block results in abort as core->hw.samples is not set.
Regards,
Akihiko Odaki
Christian Schoenebeck
Reviewed-byQuoted 29 lines · On Samstag, 26. Februar 2022 11:18:44 CET Akihiko Odaki wrote:
Quoted 28 lines · Christian Schoenebeck
Quoted 19 lines · On Samstag, 26. Februar 2022 11:02:48 CET Akihiko Odaki wrote:
Signed-off-by Akihiko Odaki <[email protected]>---
audio/coreaudio.c | 2 ++ 1 file changed, 2 insertions(+)audio/coreaudio.c +2
-0@@ -604,6 +604,8 @@ static int coreaudio_init_out(HWVoiceOut *hw, struct audsettings *as,coreaudio_playback_logerr (status, "Could not remove voice property change listener\n"); } + + return -1;Quoted 3 lines
} return 0;Is this a pure theoretical fix, or does it actually fix an actually encountered misbehaviour? I don't see any explanation in the commit log. I mean the branch here is about removing a listener only.
Quoted 5 lines
Quoted 2 lines
Best regards,
Christian SchoenebeckI saw branching to this block results in abort as
core->hw.samplesis not set.
Ok, then please add an appropriate description to the commit log of what your observed. Except of that:
Best regards,
Christian Schoenebeck