mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
audio: Add braces for statements/fix braces' position
Fix problems about braces: -braces are necessary for all arms of if/for/while statements -else should follow close brace '}' Signed-off-by: Zhang Han <zhanghan64@huawei.com> Message-id: 20210115012431.79533-1-zhanghan64@huawei.com Message-Id: <20210115012431.79533-2-zhanghan64@huawei.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
2d96a00587
commit
6c6886bd01
6 changed files with 29 additions and 48 deletions
|
@ -404,8 +404,7 @@ static void dsound_enable_out(HWVoiceOut *hw, bool enable)
|
|||
dsound_logerr (hr, "Could not stop playing buffer\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
dolog ("warning: Voice is not playing\n");
|
||||
}
|
||||
}
|
||||
|
@ -509,8 +508,7 @@ static void dsound_enable_in(HWVoiceIn *hw, bool enable)
|
|||
dsound_logerr (hr, "Could not stop capturing\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
dolog ("warning: Voice is not capturing\n");
|
||||
}
|
||||
}
|
||||
|
@ -659,8 +657,7 @@ static void *dsound_audio_init(Audiodev *dev)
|
|||
);
|
||||
if (FAILED (hr)) {
|
||||
dsound_logerr (hr, "Could not create DirectSoundCapture instance\n");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
hr = IDirectSoundCapture_Initialize (s->dsound_capture, NULL);
|
||||
if (FAILED (hr)) {
|
||||
dsound_logerr (hr, "Could not initialize DirectSoundCapture\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue