Repository: flutter
Issue: [video_player]  Initialization error when initializing multiple videos   
Labels: c: crash,customer: crowd,p: video_player,package,team-ecosystem,has reproducible steps,P2,found in release: 2.5,found in release: 2.6,triaged-ecosystem

I'm initializing video but this message comes up and never initialized video.
I'm displaying loading indicator until video gets initialized.
So, view never changes from loading indicator.
Is there any workaround?

```
W/art     (16464): Suspending all threads took: 7.008ms
E/ACodec  (16464): [OMX.google.aac.decoder] Now Loaded
E/ACodec  (16464): [OMX.google.aac.decoder] Now Loaded
Restarted application in 3,682ms.
I/ExoPlayerImpl(16464): Release 2bfc15e [ExoPlayerLib/2.9.1] [KXU, SHV40, SHARP, 25] [goog.exo.core]
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-1] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-1] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-1] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-1] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-1] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-1] cancelBuffer: BufferQueue has been abandoned
E/ACodec  (16464): [OMX.qcom.video.decoder.avc] Now Loaded
E/ACodec  (16464): [OMX.google.aac.decoder] Now Loaded
I/ExoPlayerImpl(16464): Release 7f037e0 [ExoPlayerLib/2.9.1] [KXU, SHV40, SHARP, 25] [goog.exo.core]
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-0] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-0] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-0] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-0] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-0] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-0] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-0] cancelBuffer: BufferQueue has been abandoned
E/ACodec  (16464): [OMX.qcom.video.decoder.avc] Now Loaded
E/ACodec  (16464): [OMX.google.aac.decoder] Now Loaded
I/ExoPlayerImpl(16464): Release 850f20c [ExoPlayerLib/2.9.1] [KXU, SHV40, SHARP, 25] [goog.exo.core]
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-2] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-2] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-2] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-2] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-2] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-2] cancelBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(16464): [SurfaceTexture-0-16464-2] cancelBuffer: BufferQueue has been abandoned
E/ACodec  (16464): [OMX.qcom.video.decoder.avc] Now Loaded
E/ACodec  (16464): [OMX.google.aac.decoder] Now Loaded
I/ExoPlayerImpl(16464): Init 7fa0991 [ExoPlayerLib/2.9.1] [KXU, SHV40, SHARP, 25]
I/ExoPlayerImpl(16464): Init 5a06764 [ExoPlayerLib/2.9.1] [KXU, SHV40, SHARP, 25]
I/ExoPlayerImpl(16464): Init 92eb193 [ExoPlayerLib/2.9.1] [KXU, SHV40, SHARP, 25]
I/ExoPlayerImpl(16464): Init 3db59c9 [ExoPlayerLib/2.9.1] [KXU, SHV40, SHARP, 25]
E/ACodec  (16464): [OMX.qcom.video.decoder.avc] Now Loaded
E/ACodec  (16464): [OMX.google.aac.decoder] Now Loaded
E/ACodec  (16464): [OMX.qcom.video.decoder.avc] Now Loaded
E/ACodec  (16464): [OMX.qcom.video.decoder.avc] Now Loaded
E/ACodec  (16464): [OMX.google.aac.decoder] Now Loaded
E/ACodec  (16464): [OMX.google.aac.decoder] Now Loaded
E/ACodec  (16464): [OMX.qcom.video.decoder.avc] Now Loaded
E/ACodec  (16464): [OMX.qcom.video.decoder.avc] configureCodec returning error -12
E/ACodec  (16464): signalError(omxError 0x80001001, internalError -12)
E/MediaCodec(16464): Codec reported err 0xfffffff4, actionCode 0, while in state 3
E/MediaCodec(16464): configure failed with err 0xfffffff4, resetting...
E/ACodec  (16464): [OMX.qcom.video.decoder.avc] Now Loaded
W/MediaCodecRenderer(16464): Failed to initialize decoder: OMX.qcom.video.decoder.avc
W/MediaCodecRenderer(16464): android.media.MediaCodec$CodecException: Error 0xfffffff4
W/MediaCodecRenderer(16464): 	at android.media.MediaCodec.native_configure(Native Method)
W/MediaCodecRenderer(16464): 	at android.media.MediaCodec.configure(MediaCodec.java:1884)
W/MediaCodecRenderer(16464): 	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.configureCodec(MediaCodecVideoRenderer.java:483)
W/MediaCodecRenderer(16464): 	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.initCodec(MediaCodecRenderer.java:805)
W/MediaCodecRenderer(16464): 	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.initCodecWithFallback(MediaCodecRenderer.java:745)
W/MediaCodecRenderer(16464): 	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(MediaCodecRenderer.java:474)
W/MediaCodecRenderer(16464): 	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.reinitializeCodec(MediaCodecRenderer.java:1261)
W/MediaCodecRenderer(16464): 	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onInputFormatChanged(MediaCodecRenderer.java:1111)
W/MediaCodecRenderer(16464): 	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onInputFormatChanged(MediaCodecVideoRenderer.java:552)
W/MediaCodecRenderer(16464): 	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:647)
W/MediaCodecRenderer(16464): 	at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:536)
W/MediaCodecRenderer(16464): 	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:303)
W/MediaCodecRenderer(16464): 	at android.os.Handler.dispatchMessage(Handler.java:98)
W/MediaCodecRenderer(16464): 	at android.os.Looper.loop(Looper.java:154)
W/MediaCodecRenderer(16464): 	at android.os.HandlerThread.run(HandlerThread.java:61)
E/ExoPlayerImplInternal(16464): Playback error.
E/ExoPlayerImplInternal(16464): com.google.android.exoplayer2.ExoPlaybackException: com.google.android.exoplayer2.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: OMX.qcom.video.decoder.avc, Format(2, null, null, video/avc, null, -1, null, [1280, 720, -1.0], [-1, -1])
E/ExoPlayerImplInternal(16464): 	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(MediaCodecRenderer.java:479)
E/ExoPlayerImplInternal(16464): 	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.reinitializeCodec(MediaCodecRenderer.java:1261)
E/ExoPlayerImplInternal(16464): 	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.onInputFormatChanged(MediaCodecRenderer.java:1111)
E/ExoPlayerImplInternal(16464): 	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.onInputFormatChanged(MediaCodecVideoRenderer.java:552)
E/ExoPlayerImplInternal(16464): 	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:647)
E/ExoPlayerImplInternal(16464): 	at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:536)
E/ExoPlayerImplInternal(16464): 	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:303)
E/ExoPlayerImplInternal(16464): 	at android.os.Handler.dispatchMessage(Handler.java:98)
E/ExoPlayerImplInternal(16464): 	at android.os.Looper.loop(Looper.java:154)
E/ExoPlayerImplInternal(16464): 	at android.os.HandlerThread.run(HandlerThread.java:61)
E/ExoPlayerImplInternal(16464): Caused by: com.google.android.exoplayer2.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: OMX.qcom.video.decoder.avc, Format(2, null, null, video/avc, null, -1, null, [1280, 720, -1.0], [-1, -1])
E/ExoPlayerImplInternal(16464): 	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.initCodecWithFallback(MediaCodecRenderer.java:753)
E/ExoPlayerImplInternal(16464): 	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.maybeInitCodec(MediaCodecRenderer.java:474)
E/ExoPlayerImplInternal(16464): 	... 9 more
E/ExoPlayerImplInternal(16464): Caused by: android.media.MediaCodec$CodecException: Error 0xfffffff4
E/ExoPlayerImplInternal(16464): 	at android.media.MediaCodec.native_configure(Native Method)
E/ExoPlayerImplInternal(16464): 	at android.media.MediaCodec.configure(MediaCodec.java:1884)
E/ExoPlayerImplInternal(16464): 	at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.configureCodec(MediaCodecVideoRenderer.java:483)
E/ExoPlayerImplInternal(16464): 	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.initCodec(MediaCodecRenderer.java:805)
E/ExoPlayerImplInternal(16464): 	at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.initCodecWithFallback(MediaCodecRenderer.java:745)
E/ExoPlayerImplInternal(16464): 	... 10 more
```

**flutter doctor**

```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.13.6 17G4015, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.2)
[✓] VS Code (version 1.30.1)
[!] Connected device
 ! No devices available
```