Description
<p>MP can select the wrong audio codec on channel change.</p>
<p>The root cause is that MP doesn't keep track of the current audio stream index properly.</p>
<p>When a channel has more than one audio stream TsReader triggers MP (TV plugin) to select the preferred audio stream. That will always work fine.<br>
When a channel only has one audio stream, TsReader doesn't trigger the call-back because it [reasonably] determines that there's no need for a selection to be made. The problem is that MP doesn't make the same assumption. That's how the problem arises.</p>
<p>To reproduce, change between two channels meeting the following conditions:</p>
<ul>
<li>the starting channel...
<ul>
<li>must have more than one audio stream</li>
<li>selected audio stream must not be the first one</li>
</ul>
</li>
<li>the selected channel...
<ul>
<li>must have only one audio stream</li>
</ul>
</li>
<li>the configured codecs for the starting channel audio stream and selected channel audio stream must be different (ie. you can't reproduce the problem with MPEG -> AC3/DD change because the same codec setting is for both; it must be MPEG/AC3 <--> AAC, MPEG/AC3 <--> DD+ or AAC <--> DD+)</li>
</ul>
<p>The root cause is that MP doesn't keep track of the current audio stream index properly.</p>
<p>When a channel has more than one audio stream TsReader triggers MP (TV plugin) to select the preferred audio stream. That will always work fine.<br>
When a channel only has one audio stream, TsReader doesn't trigger the call-back because it [reasonably] determines that there's no need for a selection to be made. The problem is that MP doesn't make the same assumption. That's how the problem arises.</p>
<p>To reproduce, change between two channels meeting the following conditions:</p>
<ul>
<li>the starting channel...
<ul>
<li>must have more than one audio stream</li>
<li>selected audio stream must not be the first one</li>
</ul>
</li>
<li>the selected channel...
<ul>
<li>must have only one audio stream</li>
</ul>
</li>
<li>the configured codecs for the starting channel audio stream and selected channel audio stream must be different (ie. you can't reproduce the problem with MPEG -> AC3/DD change because the same codec setting is for both; it must be MPEG/AC3 <--> AAC, MPEG/AC3 <--> DD+ or AAC <--> DD+)</li>
</ul>