1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 00:02:13 +00:00
mpv/audio/out
davince 46fe3cded0 ao_audiotrack: make audiotrack jni multi-instance and multi-thread safe
The detailed issue is here:
#15212

problem: Since The AudioTrack is not an mpv instance level but a global object, it cannot support multiple mpv instances at the same time. For example, if you create two instances and then destroy one of them, the other instance may crash.

Add jni usage count to fix this.
2024-11-06 18:54:50 +01:00
..
ao_alsa.c ao_alsa: assume device lost if we couldn't recover after 10 attempts 2024-09-14 14:08:30 +02:00
ao_audiotrack.c ao_audiotrack: make audiotrack jni multi-instance and multi-thread safe 2024-11-06 18:54:50 +01:00
ao_audiounit.m ao: add eof, pad_silence, and blocking arguments for ao_read_data 2024-05-25 22:52:45 +02:00
ao_avfoundation.m ao_avfoundation: guard features only available on macOS 11.3 and 12 2024-06-18 19:30:07 +02:00
ao_coreaudio_chmap.c ao_coreaudio_chmap: fix shadowed variable 2024-06-05 19:07:58 +02:00
ao_coreaudio_chmap.h ao/avfoundation: optimise preprocessors for included coreaudio code 2024-04-20 00:44:46 +02:00
ao_coreaudio_exclusive.c ao_coreaudio: fix CoreAudio deprecations 2024-11-05 18:34:15 +01:00
ao_coreaudio_properties.c ao_coreaudio: fix CoreAudio deprecations 2024-11-05 18:34:15 +01:00
ao_coreaudio_properties.h ao/avfoundation: optimise preprocessors for included coreaudio code 2024-04-20 00:44:46 +02:00
ao_coreaudio_utils.c ao_coreaudio: fix CoreAudio deprecations 2024-11-05 18:34:15 +01:00
ao_coreaudio_utils.h osdep: remove semaphore-mac 2024-10-12 17:26:39 +02:00
ao_coreaudio.c ao_coreaudio: fix CoreAudio deprecations 2024-11-05 18:34:15 +01:00
ao_jack.c ao: add eof, pad_silence, and blocking arguments for ao_read_data 2024-05-25 22:52:45 +02:00
ao_lavc.c various: remove av channel layout check 2024-06-22 16:12:14 +02:00
ao_null.c ao_null: fix reset() implementation 2024-01-12 20:36:04 +01:00
ao_openal.c options: transition options from OPT_FLAG to OPT_BOOL 2023-02-21 17:15:17 +00:00
ao_opensles.c ao: add eof, pad_silence, and blocking arguments for ao_read_data 2024-05-25 22:52:45 +02:00
ao_oss.c various: fix tabs in code 2024-05-07 11:23:08 +02:00
ao_pcm.c ao_pcm: fix incorrect win32 check 2024-06-05 19:16:35 +02:00
ao_pipewire.c ao_pipewire: bump minimum libpipewire version to 0.3.57 2024-07-08 13:33:32 +00:00
ao_pulse.c various: fix indentation 2024-05-07 11:23:08 +02:00
ao_sdl.c ao: add eof, pad_silence, and blocking arguments for ao_read_data 2024-05-25 22:52:45 +02:00
ao_sndio.c ao: rename playthread to ao_thread 2024-04-10 19:00:22 +02:00
ao_wasapi_changenotify.c ao_wasapi: don't limit the scope of execution context 2024-06-07 19:41:28 +02:00
ao_wasapi_utils.c ao_wasapi: don't limit the scope of execution context 2024-06-07 19:41:28 +02:00
ao_wasapi.c ao_wasapi: fix player core lockup when avoiding premature buffer fills 2024-04-27 00:59:09 +02:00
ao_wasapi.h ao_wasapi: fix player core lockup when avoiding premature buffer fills 2024-04-27 00:59:09 +02:00
ao.c audio: change bps format to int64_t 2024-05-10 05:16:27 +02:00
ao.h audio: drain ao before setting pause 2023-08-11 22:28:50 +00:00
buffer.c ao: don't add buffer length to timeout twice 2024-07-10 19:32:36 +02:00
internal.h ao: add ao_stop_streaming 2024-05-25 22:52:45 +02:00