mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
parent
f2c51560c2
commit
ebfeb2f77a
1 changed files with 7 additions and 6 deletions
|
|
@ -190,12 +190,13 @@ public class FakeSampleStream implements SampleStream {
|
|||
}
|
||||
}
|
||||
sampleItemIndex = fakeSampleStreamItems.size();
|
||||
if (!fakeSampleStreamItems.isEmpty()) {
|
||||
FakeSampleStreamItem lastItem = Iterables.getLast(fakeSampleStreamItems);
|
||||
readEOSBuffer =
|
||||
lastItem.sampleInfo != null
|
||||
&& ((lastItem.sampleInfo.flags & C.BUFFER_FLAG_END_OF_STREAM) != 0);
|
||||
}
|
||||
@Nullable
|
||||
FakeSampleStreamItem lastItem =
|
||||
Iterables.getLast(fakeSampleStreamItems, /* defaultValue= */ null);
|
||||
readEOSBuffer =
|
||||
lastItem != null
|
||||
&& lastItem.sampleInfo != null
|
||||
&& ((lastItem.sampleInfo.flags & C.BUFFER_FLAG_END_OF_STREAM) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue