diff options
author | wm4 <wm4@nowhere> | 2015-10-05 18:40:42 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-10-05 19:10:22 +0200 |
commit | e694d6736699d385772a3942aad52bba4bb7caf9 (patch) | |
tree | 18cee0415ba968273342dbd6cdfd8e3935f28f0e /sub/ass_mp.h | |
parent | 6890de958d3c62ba0931c4860862612d3d8144b9 (diff) | |
download | mpv-e694d6736699d385772a3942aad52bba4bb7caf9.tar.bz2 mpv-e694d6736699d385772a3942aad52bba4bb7caf9.tar.xz |
ao: rework audio output driver probing
Make the code a bit more uniform. Always build a "dummy" audio output
list before probing, which means that opening preferred devices and
pure auto-probing is done with the same code. We can drop the second
ao_init() call.
This also makes the next commit easier, which wants to selectively
fallback to ao_null. This could have been implemented by passing a
different requested audio output list (instead of reading it from
MPOptions), but I think it's better if this rather special feature
is handled internally in the AO code. This also makes sure the AO
code can handle its own options (such as the audio output list) in
a self-contained way.
Diffstat (limited to 'sub/ass_mp.h')
0 files changed, 0 insertions, 0 deletions