]> git.proxmox.com Git - mirror_qemu.git/commit - audio/coreaudio.m
coreaudio: Fix output stream format settings
authorAkihiko Odaki <akihiko.odaki@gmail.com>
Wed, 16 Jun 2021 14:17:21 +0000 (23:17 +0900)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 17 Jun 2021 10:00:26 +0000 (12:00 +0200)
commit986bdbc6a29c4d7ef125299c5013783e30dc2cae
treeebc5afc29f5e8cef2172bfbb8b21925dfde56b32
parent0c29b786e6b5276d43be2be255a8323c628ec790
coreaudio: Fix output stream format settings

Before commit 7d6948cd98cf5ad8a3458a4ce7fdbcb79bcd1212, it was coded to
retrieve the initial output stream format settings, modify the frame
rate, and set again. However, I removed a frame rate modification code by
mistake in the commit. It also assumes the initial output stream format
is consistent with what QEMU expects, but that expectation is not in the
code, which makes it harder to understand and will lead to breakage if
the initial settings change.

This change explicitly sets all of the output stream settings to solve
these problems.

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20210616141721.54091-1-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/coreaudio.c