mpv/player
Thomas Weißschuh 013ec877f6 audio: try to use playback AO as hotplug AO first
When a platform has multiple valid AOs that can provide hotplug events
we should try to use the one that also provides playback.

Concretely this will help when introducing hotplug support for
ao_pipewire.

Currently ao_pulse is probed by ao_hotplug_get_device_list() before
ao_pipewire and on the common setups where both AOs could work pulse
will be selected for hotplug handling.
This means that hotplug_init() of ao_pipewire will never be called and
list_devs() has to do its own initialization.
But if ao_pulse is non-functional or not compiled-in suddenly
ao_pipewire *must* implement hotplug_init() for hotplugging events to
work for all.

Also if the hotplug ao_pulse connects to a PulseAudio instance that is
not emulated by the same PipeWire instance as the playback ao_pipewire
the hotplug events are useless.
2022-09-11 20:24:42 -07:00
..
javascript js: key bindings: ensure priorities for same-key - again 2022-06-23 17:16:33 +03:00
lua ytdl_hook: improve track detection 2022-08-17 20:04:00 +00:00
audio.c audio: add AOCONTROL_UPDATE_MEDIA_ROLE 2022-09-10 12:32:52 -07:00
client.c various: fix typos 2022-04-25 09:07:18 -04:00
client.h
command.c audio: try to use playback AO as hotplug AO first 2022-09-11 20:24:42 -07:00
command.h player: make deprecated track/chapter/metadata events internal 2021-12-15 12:29:10 +01:00
configfiles.c options: add watch-later-options 2021-07-21 13:19:28 +00:00
core.h audio: add AOCONTROL_UPDATE_MEDIA_ROLE 2022-09-10 12:32:52 -07:00
external_files.c player: add tiff/tif (TIFF) to list of image extensions 2022-06-07 06:28:34 -04:00
external_files.h
javascript.c js: utils.get_user_path: make wrapper of expand-path 2022-02-04 12:53:16 +02:00
loadfile.c player: make deprecated track/chapter/metadata events internal 2021-12-15 12:29:10 +01:00
lua.c lua: avoid rare memory leak in mp.join_path 2022-05-12 17:15:37 +03:00
main.c audio: try to use playback AO as hotplug AO first 2022-09-11 20:24:42 -07:00
misc.c
osd.c various: fix typos 2022-04-25 09:07:18 -04:00
playloop.c player: set EOF when seeking to end with keep-open 2022-05-14 14:51:42 +00:00
screenshot.c screenshot: add --screenshot-sw option 2020-10-05 00:16:46 +02:00
screenshot.h
scripting.c player/scripting: fix use-after-free when loading script folders 2021-04-08 23:47:35 +03:00
sub.c sub: align ytdl-hook secondary subs to the top 2021-08-11 18:15:35 +00:00
video.c player: rearrange video sync opts/enums/defines 2022-04-11 18:14:22 +00:00