1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 04:45:33 +00:00

af_channels: use "unknown" channel layouts

This will make af_channels output a channel layout that is compatible
with any destination layout. Not sure if that's a good idea though,
since the way the AO choses a layout is perhaps less predictable. On the
other hand, using the old MPlayer standard layouts doesn't make much
sense either. We'll see whether this improves or breaks someone's use
case.
This commit is contained in:
wm4 2013-12-04 22:10:22 +01:00
parent 4f581a781b
commit 71b6115d66

View File

@ -141,9 +141,11 @@ static int control(struct af_instance* af, int cmd, void* arg)
{
af_channels_t* s = af->priv;
switch(cmd){
case AF_CONTROL_REINIT:
case AF_CONTROL_REINIT: ;
mp_audio_set_channels_old(af->data, s->nch);
struct mp_chmap chmap;
mp_chmap_set_unknown(&chmap, s->nch);
mp_audio_set_channels(af->data, &chmap);
// Set default channel assignment
if(!s->router){