Fix comparison in ChunkSampleStream.

A recent change tried to make this condition clearer by using Integer.MAX_VALUE, but
this only works if the comparison also compares against larger values.

PiperOrigin-RevId: 312697530
This commit is contained in:
tonihei 2020-05-21 18:41:42 +01:00
parent 80eb5d4235
commit dac3dde7bb

View File

@ -635,7 +635,7 @@ public class ChunkSampleStream<T extends ChunkSource> implements SampleStream, S
break;
}
}
if (newQueueSize == currentQueueSize) {
if (newQueueSize >= currentQueueSize) {
return;
}