Commit ebfeb2f7 by tonihei Committed by kim-vde
parent f2c51560
...@@ -190,12 +190,13 @@ public class FakeSampleStream implements SampleStream { ...@@ -190,12 +190,13 @@ public class FakeSampleStream implements SampleStream {
} }
} }
sampleItemIndex = fakeSampleStreamItems.size(); sampleItemIndex = fakeSampleStreamItems.size();
if (!fakeSampleStreamItems.isEmpty()) { @Nullable
FakeSampleStreamItem lastItem = Iterables.getLast(fakeSampleStreamItems); FakeSampleStreamItem lastItem =
readEOSBuffer = Iterables.getLast(fakeSampleStreamItems, /* defaultValue= */ null);
lastItem.sampleInfo != null readEOSBuffer =
&& ((lastItem.sampleInfo.flags & C.BUFFER_FLAG_END_OF_STREAM) != 0); lastItem != null
} && lastItem.sampleInfo != null
&& ((lastItem.sampleInfo.flags & C.BUFFER_FLAG_END_OF_STREAM) != 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