[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 8/9] audio: audio state is now mandatory for capture
From: |
Daniel P . Berrangé |
Subject: |
[PATCH 8/9] audio: audio state is now mandatory for capture |
Date: |
Fri, 13 Jan 2023 11:21:59 -0500 |
Both callers of AUD_add_capture will now ensure that the
audio state is non-NULL.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
audio/audio.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/audio/audio.c b/audio/audio.c
index 00128c2ad7..64b75cdf94 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -1845,13 +1845,6 @@ CaptureVoiceOut *AUD_add_capture(
CaptureVoiceOut *cap;
struct capture_callback *cb;
- if (!s) {
- if (!legacy_config) {
- dolog("Capturing without setting an audiodev is deprecated\n");
- }
- s = audio_init(NULL, NULL);
- }
-
if (!audio_get_pdo_out(s->dev)->mixing_engine) {
dolog("Can't capture with mixeng disabled\n");
return NULL;
--
2.38.1
- [PATCH 9/9] audio: remove support for QEMU_AUDIO_ env variables, (continued)
- [PATCH 9/9] audio: remove support for QEMU_AUDIO_ env variables, Daniel P . Berrangé, 2023/01/13
- [PATCH 2/9] audio: remove special audio_calloc function, Daniel P . Berrangé, 2023/01/13
- [PATCH 6/9] docs: split the deprecation warning for soundcards vs VNC, Daniel P . Berrangé, 2023/01/13
- [PATCH 5/9] audio: remove empty AUD_remove_card method, Daniel P . Berrangé, 2023/01/13
- [PATCH 7/9] ui/vnc: don't accept VNC_ENCODING_AUDIO without audiodev, Daniel P . Berrangé, 2023/01/13
- [PATCH 3/9] audio: remove unused 'name' in QEMUSoundCard struct, Daniel P . Berrangé, 2023/01/13
- [PATCH 1/9] audio: don't check qemu_add_vm_change_state_handler failure, Daniel P . Berrangé, 2023/01/13
- [PATCH 8/9] audio: audio state is now mandatory for capture,
Daniel P . Berrangé <=