Commit 1a479387 by olly Committed by Oliver Woodman

Fix the equals check

PiperOrigin-RevId: 258574110
parent a3ded59f
......@@ -227,7 +227,7 @@ import com.google.android.exoplayer2.util.Util;
return SampleQueue.PEEK_RESULT_NOTHING;
}
int relativeReadIndex = getRelativeIndex(readPosition);
if (formats[relativeReadIndex].equals(downstreamFormat)) {
if (!formats[relativeReadIndex].equals(downstreamFormat)) {
return SampleQueue.PEEK_RESULT_FORMAT;
} else {
return (flags[relativeReadIndex] & C.BUFFER_FLAG_ENCRYPTED) != 0
......
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