1
0
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:
Kevin Mitchell 2015-01-02 14:26:08 -08:00
parent 155c8e20ef
commit 6a6620a554
3 changed files with 63 additions and 64 deletions

View File

@ -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) {

View File

@ -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) {