Commit e21a2389 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Fix for if only several channels are not set.

parent 46148fda
......@@ -300,6 +300,9 @@ static int Open( vlc_object_t * p_this )
continue;
default:
msg_Warn( p_aout, "Unrecognized channel form provided by driver: %d", (int)layout->mChannelDescriptions[i].mChannelLabel );
if( i == 0 )
{
msg_Warn( p_aout, "Probably no channellayout is set. force based on channelcount" );
switch( layout->mNumberChannelDescriptions )
{
/* We make assumptions based on number of channels here.
......@@ -331,6 +334,7 @@ static int Open( vlc_object_t * p_this )
default:
p_aout->output.output.i_physical_channels = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;
}
}
break;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment