mirror of
https://github.com/mpv-player/mpv
synced 2025-01-13 18:45:25 +00:00
ao/wasapi: style/code formatting tweaks
This commit is contained in:
parent
155c8e20ef
commit
6a6620a554
@ -131,7 +131,7 @@ static DWORD __stdcall ThreadLoop(void *lpParameter)
|
|||||||
HANDLE playcontrol[] =
|
HANDLE playcontrol[] =
|
||||||
{state->hUninit, state->hFeed, state->hForceFeed, NULL};
|
{state->hUninit, state->hFeed, state->hForceFeed, NULL};
|
||||||
MP_DBG(ao, "Entering dispatch loop\n");
|
MP_DBG(ao, "Entering dispatch loop\n");
|
||||||
while (1) { /* watch events */
|
while (true) { /* watch events */
|
||||||
waitstatus = MsgWaitForMultipleObjects(3, playcontrol, FALSE, INFINITE,
|
waitstatus = MsgWaitForMultipleObjects(3, playcontrol, FALSE, INFINITE,
|
||||||
QS_POSTMESSAGE | QS_SENDMESSAGE);
|
QS_POSTMESSAGE | QS_SENDMESSAGE);
|
||||||
switch (waitstatus) {
|
switch (waitstatus) {
|
||||||
|
@ -146,8 +146,7 @@ static HRESULT STDMETHODCALLTYPE sIMMNotificationClient_OnDefaultDeviceChanged(
|
|||||||
MP_VERBOSE(ao, "New default device %S\n", pwstrDeviceId);
|
MP_VERBOSE(ao, "New default device %S\n", pwstrDeviceId);
|
||||||
|
|
||||||
/* don't care about "eCapture" or non-"eMultimedia" roles */
|
/* don't care about "eCapture" or non-"eMultimedia" roles */
|
||||||
if ( flow == eCapture ||
|
if (flow == eCapture || role != eMultimedia) return S_OK;
|
||||||
role != eMultimedia ) return S_OK;
|
|
||||||
|
|
||||||
/* stay on the device the user specified */
|
/* stay on the device the user specified */
|
||||||
if (state->opt_device) {
|
if (state->opt_device) {
|
||||||
|
Loading…
Reference in New Issue
Block a user