AMC: fail to switch audio track when using AAC audio decoder
I wrote a small Android app using GstPlayer. When playing an mp4 file with h264 video and 2 AAC audio tracks, it plays fine until I select the 2nd audio track. I see those errors:
10-21 10:42:58.072 4732 4807 E GStreamer+amcaudiodec: 0:00:13.585458281 0x7363f11f60 ../subprojects/gst-plugins-bad/sys/androidmedia/gstamcaudiodec.c:478:gst_amc_audio_dec_loop:<amcaudiodec-omxgoogleaacdecoder1> Failure dequeueing output buffer
10-21 10:42:58.072 4732 4807 W GStreamer+amcaudiodec: 0:00:13.585567239 0x7363f11f60 ../subprojects/gst-plugins-bad/sys/androidmedia/gstamcaudiodec.c:620:gst_amc_audio_dec_loop:<amcaudiodec-omxgoogleaacdecoder1> error: Failed to call Java method: java.lang.IllegalStateException
10-21 10:42:58.072 4732 4807 W GStreamer+amcaudiodec: java.lang.IllegalStateException
10-21 10:42:58.072 4732 4807 W GStreamer+amcaudiodec: at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
10-21 10:42:58.072 4732 4807 W GStreamer+amcaudiodec: at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:3452)
10-21 10:42:58.072 4732 4807 W GStreamer+amcaudiodec:
If I rank google audio decoder SECONDARY then it picks libav decoder and it works.