mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 16:40:32 +00:00
-Fixed MediaSourceManager from inserting already inserted entry.
This commit is contained in:
parent
cc4e4a4f91
commit
0d3e0c201e
@ -273,7 +273,7 @@ public class MediaSourceManager implements DeferredMediaSource.Callback {
|
||||
* If the play queue index already exists, then the insert is ignored.
|
||||
* */
|
||||
private void insert(final int queueIndex, final DeferredMediaSource source) {
|
||||
if (queueIndex < 0) return;
|
||||
if (queueIndex < 0 || queueIndex < sources.getSize()) return;
|
||||
|
||||
sources.addMediaSource(queueIndex, source);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user