mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Make MediaCodecVideoRenderer::shouldUsePlaceholderSurface protected.
This enables a derived renderer to disable the placeholder surface.
This commit is contained in:
parent
045b8e6a52
commit
8466a957c3
@ -1882,7 +1882,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer
|
||||
return Util.SDK_INT >= 35 && codecInfo.detachedSurfaceSupported;
|
||||
}
|
||||
|
||||
private boolean shouldUsePlaceholderSurface(MediaCodecInfo codecInfo) {
|
||||
protected boolean shouldUsePlaceholderSurface(MediaCodecInfo codecInfo) {
|
||||
return Util.SDK_INT >= 23
|
||||
&& !tunneling
|
||||
&& !codecNeedsSetOutputSurfaceWorkaround(codecInfo.name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user