mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
parent
f2c51560c2
commit
ebfeb2f77a
1 changed files with 7 additions and 6 deletions
|
|
@ -190,13 +190,14 @@ public class FakeSampleStream implements SampleStream {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sampleItemIndex = fakeSampleStreamItems.size();
|
sampleItemIndex = fakeSampleStreamItems.size();
|
||||||
if (!fakeSampleStreamItems.isEmpty()) {
|
@Nullable
|
||||||
FakeSampleStreamItem lastItem = Iterables.getLast(fakeSampleStreamItems);
|
FakeSampleStreamItem lastItem =
|
||||||
|
Iterables.getLast(fakeSampleStreamItems, /* defaultValue= */ null);
|
||||||
readEOSBuffer =
|
readEOSBuffer =
|
||||||
lastItem.sampleInfo != null
|
lastItem != null
|
||||||
|
&& lastItem.sampleInfo != null
|
||||||
&& ((lastItem.sampleInfo.flags & C.BUFFER_FLAG_END_OF_STREAM) != 0);
|
&& ((lastItem.sampleInfo.flags & C.BUFFER_FLAG_END_OF_STREAM) != 0);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds an item to the end of the queue of {@link FakeSampleStreamItem items}.
|
* Adds an item to the end of the queue of {@link FakeSampleStreamItem items}.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue