Commit 229d1884 authored by Martin Storsjö's avatar Martin Storsjö

omxil: Handle parameter changes for OMX_IndexParamAudioPcm as output reconfiguration

This fixes the output sample rate when decoding with
OMX.Nvidia.aac.decoder (such as on nexus 7), possibly also for other
audio codecs on the same class of devices, possibly also for audio
codecs on other OMX implementations.
Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent e1052af3
......@@ -1594,7 +1594,8 @@ static OMX_ERRORTYPE OmxEventHandler( OMX_HANDLETYPE omx_handle,
break;
case OMX_EventPortSettingsChanged:
if( data_2 == 0 || data_2 == OMX_IndexParamPortDefinition )
if( data_2 == 0 || data_2 == OMX_IndexParamPortDefinition ||
data_2 == OMX_IndexParamAudioPcm )
{
OMX_BUFFERHEADERTYPE *sentinel;
for(i = 0; i < p_sys->ports; i++)
......
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