Skip to contentSkip to conversation

coreaudio: Notify error in coreaudio_init_out

PATCH Superseded Akihiko Odaki 2 participants 4 messages Feb 26, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 coreaudio: Notify error in coreaudio_init_out

---
 audio/coreaudio.c | 2 ++
 1 file changed, 2 insertions(+)
audio/coreaudio.c +2 -0
index d8a21d3e507..d7cfdcc4fc4 100644
@@ -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)
#1 lore raw
Quoted 10 lines · On Samstag, 26. Februar 2022 11:02:48 CET Akihiko Odaki wrote:
---
 audio/coreaudio.c | 2 ++
 1 file changed, 2 insertions(+)
audio/coreaudio.c +0 -0
index d8a21d3e507..d7cfdcc4fc4 100644

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

#2 lore raw
Quoted 18 lines · Christian Schoenebeck
Quoted 17 lines · On Samstag, 26. Februar 2022 11:02:48 CET Akihiko Odaki wrote:
---
  audio/coreaudio.c | 2 ++
  1 file changed, 2 insertions(+)
audio/coreaudio.c +2 -0
index d8a21d3e507..d7cfdcc4fc4 100644
@@ -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 -0
      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

I saw branching to this block results in abort as core->hw.samples is not set.

Regards,
Akihiko Odaki

#3 lore raw
Quoted 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:

---

  audio/coreaudio.c | 2 ++
  1 file changed, 2 insertions(+)
audio/coreaudio.c +2 -0
index d8a21d3e507..d7cfdcc4fc4 100644
@@ -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 Schoenebeck

I saw branching to this block results in abort as core->hw.samples is not set.

Ok, then please add an appropriate description to the commit log of what your observed. Except of that:

Best regards,
Christian Schoenebeck