mirror of
https://github.com/androidx/media.git
synced 2025-05-09 00:20:45 +08:00
Workaround EOS propagation for all devices with RK decoder.
As per the end of the related issue, it's likely that all devices running the affected API levels + decoder are affected by the same issue. Issue #464
This commit is contained in:
parent
98426a782f
commit
6bf817f107
@ -922,11 +922,7 @@ public abstract class MediaCodecTrackRenderer extends SampleSourceTrackRenderer
|
|||||||
* propagation incorrectly on the host device. False otherwise.
|
* propagation incorrectly on the host device. False otherwise.
|
||||||
*/
|
*/
|
||||||
private static boolean codecNeedsEosPropagationWorkaround(String name) {
|
private static boolean codecNeedsEosPropagationWorkaround(String name) {
|
||||||
return Util.SDK_INT <= 17
|
return Util.SDK_INT <= 17 && "OMX.rk.video_decoder.avc".equals(name);
|
||||||
&& "OMX.rk.video_decoder.avc".equals(name)
|
|
||||||
&& ("ht7s3".equals(Util.DEVICE) // Tesco HUDL
|
|
||||||
|| "rk30sdk".equals(Util.DEVICE) // Rockchip rk30
|
|
||||||
|| "rk31sdk".equals(Util.DEVICE)); // Rockchip rk31
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user