Skip to content

Commit b7bc1fe

Browse files
toniheiojw28
authored andcommitted
Add missing @nullable to MediaCodecAudioRenderer.getMediaClock
Without this @nullable, potential subclasses can't override the method to return null if they don't want to use the renderer as a media clock. Issue:#6792 PiperOrigin-RevId: 286545736
1 parent 63f7b99 commit b7bc1fe

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

RELEASENOTES.md

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
`SsaStyle$SsaAlignment`
1717
([#6771](https://github.com/google/ExoPlayer/issues/6771)).
1818
* Fix `CacheDataSource` to correctly propagate `DataSpec.httpRequestHeaders`.
19+
* Add missing @Nullable to `MediaCodecAudioRenderer.getMediaClock` and
20+
`SimpleDecoderAudioRenderer.getMediaClock`
21+
([#6792](https://github.com/google/ExoPlayer/issues/6792)).
1922

2023
### 2.11.0 (2019-12-11) ###
2124

library/core/src/main/java/com/google/android/exoplayer2/audio/MediaCodecAudioRenderer.java

+1
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ protected boolean canKeepCodecWithFlush(Format oldFormat, Format newFormat) {
520520
}
521521

522522
@Override
523+
@Nullable
523524
public MediaClock getMediaClock() {
524525
return this;
525526
}

library/core/src/main/java/com/google/android/exoplayer2/audio/SimpleDecoderAudioRenderer.java

+1
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ public SimpleDecoderAudioRenderer(
218218
}
219219

220220
@Override
221+
@Nullable
221222
public MediaClock getMediaClock() {
222223
return this;
223224
}

0 commit comments

Comments
 (0)