1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-30 11:42:04 +00:00

ao_coreaudio: actually use stop callback

The .pause callback is never used for pull.c-based AOs.

This means this always streamed silence instead of deactivating audio.
This commit is contained in:
wm4 2016-08-09 12:30:18 +02:00
parent d81b5690df
commit 3759a3f40b
2 changed files with 2 additions and 2 deletions

View File

@ -419,7 +419,7 @@ const struct ao_driver audio_out_coreaudio = {
.uninit = uninit, .uninit = uninit,
.init = init, .init = init,
.control = control, .control = control,
.pause = stop, .reset = stop,
.resume = start, .resume = start,
.hotplug_init = hotplug_init, .hotplug_init = hotplug_init,
.hotplug_uninit = hotplug_uninit, .hotplug_uninit = hotplug_uninit,

View File

@ -399,7 +399,7 @@ const struct ao_driver audio_out_coreaudio_exclusive = {
.name = "coreaudio_exclusive", .name = "coreaudio_exclusive",
.uninit = uninit, .uninit = uninit,
.init = init, .init = init,
.pause = audio_pause, .reset = audio_pause,
.resume = audio_resume, .resume = audio_resume,
.list_devs = ca_get_device_list, .list_devs = ca_get_device_list,
.priv_size = sizeof(struct priv), .priv_size = sizeof(struct priv),