Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 committed Nov 23, 2023
1 parent 358cef9 commit 03937bf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion audio/out/ao_coreaudio_chmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ static AudioChannelLayout* ca_query_stereo_layout(struct ao *ao,
void *talloc_ctx)
{
OSStatus err;
const int nch = 2;

#define nch 2

uint32_t channels[nch];
AudioChannelLayout *r = NULL;

Expand All @@ -268,6 +270,8 @@ static AudioChannelLayout* ca_query_stereo_layout(struct ao *ao,
r->mChannelDescriptions[i] = desc;
}

#undef nch

coreaudio_error:
return r;
}
Expand Down
2 changes: 1 addition & 1 deletion audio/out/ao_coreaudio_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ bool ca_change_physical_format_sync(struct ao *ao, AudioStreamID stream,

ca_print_asbd(ao, "setting stream physical format:", &change_format);

sem_t wakeup;
mp_sem_t wakeup;
if (mp_sem_init(&wakeup, 0, 0)) {
MP_WARN(ao, "OOM\n");
return false;
Expand Down
2 changes: 2 additions & 0 deletions osdep/macosx_events.m
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ -(void)processEvent:(struct mpv_event *)event
_ctx = nil;
break;
}
default:
break;
}
}

Expand Down
2 changes: 2 additions & 0 deletions osdep/macosx_touchbar.m
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ - (void)processEvent:(struct mpv_event *)event
[self handlePropertyChange:(mpv_event_property *)event->data];
break;
}
default:
break;
}
}

Expand Down

0 comments on commit 03937bf

Please sign in to comment.