mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 12:55:16 +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:
parent
4f581a781b
commit
71b6115d66
@ -141,9 +141,11 @@ static int control(struct af_instance* af, int cmd, void* arg)
|
|||||||
{
|
{
|
||||||
af_channels_t* s = af->priv;
|
af_channels_t* s = af->priv;
|
||||||
switch(cmd){
|
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
|
// Set default channel assignment
|
||||||
if(!s->router){
|
if(!s->router){
|
||||||
|
Loading…
Reference in New Issue
Block a user