mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Merge pull request #1905 from khouzam:placeholderSurface
PiperOrigin-RevId: 721367514
This commit is contained in:
commit
fc1d133454
@ -11,6 +11,10 @@
|
||||
* Audio:
|
||||
* Make `androidx.media3.common.audio.SonicAudioProcessor` final.
|
||||
* Video:
|
||||
* Change `MediaCodecVideoRenderer.shouldUsePlaceholderSurface` to
|
||||
protected so that applications can override to block usage of
|
||||
placeholder surfaces
|
||||
([#1905](https://github.com/androidx/media/pull/1905)).
|
||||
* Text:
|
||||
* Metadata:
|
||||
* Image:
|
||||
|
@ -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