summaryrefslogtreecommitdiffstats
path: root/audio/chmap_sel.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-20 14:25:47 +0100
committerwm4 <wm4@nowhere>2015-01-20 14:25:47 +0100
commit3c2ca0cecc7f88fb94449605b7b33fbdbb855ed0 (patch)
tree6997a8431aa78fdd9cd03d8ad3369a71c4d5ebd6 /audio/chmap_sel.c
parent84928b049d9772b30b94da4f503b1811a4f5c59e (diff)
downloadmpv-3c2ca0cecc7f88fb94449605b7b33fbdbb855ed0.tar.bz2
mpv-3c2ca0cecc7f88fb94449605b7b33fbdbb855ed0.tar.xz
ao: refactor --audio-device selection code
This removes the slightly duplicated code for picking the required AO driver if --audio-device forces one. Now --audio-device reuses the same code as --ao for this. As a consequence, ao_alloc_pb() and ao_create() can be merged into ao_init(). Although the ao_init() argument list, which is already pretty big, grows by one, it's better than having all these similar sounding functions around. Actually, I just wanted to do the change the following commit will do, but I found this code was more of a mess than it had to be.
Diffstat (limited to 'audio/chmap_sel.c')
0 files changed, 0 insertions, 0 deletions