Commit 38030559 by jbibik Committed by Tofunmi Adigun-Hameed

Fix 1 ErrorProneStyle finding

PiperOrigin-RevId: 538469993
(cherry picked from commit bc94a0e189b92310cc28c644aa11771d534987d5)
parent af70eedf
...@@ -1080,7 +1080,6 @@ public final class DefaultAudioSink implements AudioSink { ...@@ -1080,7 +1080,6 @@ public final class DefaultAudioSink implements AudioSink {
&& (outputBuffer == null || !outputBuffer.hasRemaining()); && (outputBuffer == null || !outputBuffer.hasRemaining());
} }
@SuppressWarnings("ReferenceEquality")
/** /**
* Writes the provided buffer to the audio track. * Writes the provided buffer to the audio track.
* *
...@@ -1088,6 +1087,7 @@ public final class DefaultAudioSink implements AudioSink { ...@@ -1088,6 +1087,7 @@ public final class DefaultAudioSink implements AudioSink {
* @param avSyncPresentationTimeUs The tunneling AV sync presentation time for the buffer, or * @param avSyncPresentationTimeUs The tunneling AV sync presentation time for the buffer, or
* {@link C#TIME_END_OF_SOURCE} when draining remaining buffers at the end of the stream. * {@link C#TIME_END_OF_SOURCE} when draining remaining buffers at the end of the stream.
*/ */
@SuppressWarnings("ReferenceEquality")
private void writeBuffer(ByteBuffer buffer, long avSyncPresentationTimeUs) throws WriteException { private void writeBuffer(ByteBuffer buffer, long avSyncPresentationTimeUs) throws WriteException {
if (!buffer.hasRemaining()) { if (!buffer.hasRemaining()) {
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment