]> git.sesse.net Git - vlc/commitdiff
omxil: Handle parameter changes for OMX_IndexParamAudioPcm as output reconfiguration
authorMartin Storsjö <martin@martin.st>
Tue, 9 Jul 2013 11:27:54 +0000 (14:27 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 9 Jul 2013 11:30:54 +0000 (14:30 +0300)
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: Martin Storsjö <martin@martin.st>
modules/codec/omxil/omxil.c

index bad3ad16b096002d122eb4cedb9a32c74247d76e..c49b7e5530adf69d7f3e652e8261c9e0595b542e 100644 (file)
@@ -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++)