Recreate codec and display on rotation changed
On some devices, we can reuse the same codec and display, but on some others (e.g. Nexus 5X with Android 7.1.2), it crashes on codec.stop() with an IllegalStateException. Therefore, always recreate the codec and display, so that it works on all devices.
R
Romain Vimont committed
5f51d605c037f75bc266b8d62c5048a803f639cf
Parent: d5acc8a