Skip to content

Commit fc1d133

Browse files
Merge pull request #1905 from khouzam:placeholderSurface
PiperOrigin-RevId: 721367514
2 parents 9f96fe8 + ad18ae9 commit fc1d133

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

RELEASENOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
* Audio:
1212
* Make `androidx.media3.common.audio.SonicAudioProcessor` final.
1313
* Video:
14+
* Change `MediaCodecVideoRenderer.shouldUsePlaceholderSurface` to
15+
protected so that applications can override to block usage of
16+
placeholder surfaces
17+
([#1905](https://github.com/androidx/media/pull/1905)).
1418
* Text:
1519
* Metadata:
1620
* Image:

libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/MediaCodecVideoRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,7 @@ protected boolean shouldUseDetachedSurface(MediaCodecInfo codecInfo) {
18821882
return Util.SDK_INT >= 35 && codecInfo.detachedSurfaceSupported;
18831883
}
18841884

1885-
private boolean shouldUsePlaceholderSurface(MediaCodecInfo codecInfo) {
1885+
protected boolean shouldUsePlaceholderSurface(MediaCodecInfo codecInfo) {
18861886
return Util.SDK_INT >= 23
18871887
&& !tunneling
18881888
&& !codecNeedsSetOutputSurfaceWorkaround(codecInfo.name)

0 commit comments

Comments
 (0)