mirror of
https://github.com/samsonjs/media.git
synced 2026-04-04 11:05:47 +00:00
parent
6a9f125c14
commit
1b5d07c105
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