ANR on Fire TV when changing surface holder
### Issue description
ANR occurs when setting video surface holder to null after it got destroyed.

### Reproduction steps
Trigger replacing surface.

### Link to test content
Any video.

### Version of ExoPlayer being used
2.7.0, 2.7.2 and 2.8.1

### Device(s) and version(s) of Android being used
Fire TV 6.0.1.4-012, OS 6.2.1.3

Codec: OMX.amlogic.avc.decoder.awesome
Device: needle
Model: AFTN

### A full bug report captured from the device
Will be sent by email.


diff --git a/library/core/src/main/java/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.java b/library/core/src/main/java/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.java
index 990025b5af..5e8a98ea68 100644
--- a/library/core/src/main/java/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.java
+++ b/library/core/src/main/java/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.java
@@ -825,10 +825,11 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
   private boolean shouldUseDummySurface(MediaCodecInfo codecInfo) {
     return Util.SDK_INT >= 23
         && !tunneling
+        && !codecNeedsDummySurfaceWorkaround(codecInfo.name)
         && !codecNeedsSetOutputSurfaceWorkaround(codecInfo.name)
         && (!codecInfo.secure || DummySurface.isSecureSupported(context));
   }
-
+  
   private void setJoiningDeadlineMs() {
     joiningDeadlineMs = allowedJoiningTimeMs > 0
         ? (SystemClock.elapsedRealtime() + allowedJoiningTimeMs) : C.TIME_UNSET;
@@ -1171,6 +1172,12 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
     return Util.SDK_INT <= 22 && "foster".equals(Util.DEVICE) && "NVIDIA".equals(Util.MANUFACTURER);
   }
 
+  private static boolean codecNeedsDummySurfaceWorkaround(String name) {
+    // Work around https://github.com/google/ExoPlayer/issues/4419.
+    return (("needle".equals(Util.DEVICE)) // FireTV 4K
+            && "OMX.amlogic.avc.decoder.awesome".equals(name));
+  }
+  
   /**
    * Returns whether the device is known to implement {@link MediaCodec#setOutputSurface(Surface)}
    * incorrectly.
['library/core/src/main/java/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.java']