1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-01-08 08:55:15 +01:00

Fix for player access out of its creation thread

This commit is contained in:
Mauricio Colli 2019-12-31 02:51:32 -03:00
parent 04b75ef05f
commit 1e7e8d4121
No known key found for this signature in database
GPG Key ID: F200BFD6F29DDD85

View File

@ -319,6 +319,7 @@ public class MediaSourceManager {
private Observable<Long> getEdgeIntervalSignal() {
return Observable.interval(progressUpdateIntervalMillis, TimeUnit.MILLISECONDS)
.observeOn(AndroidSchedulers.mainThread())
.filter(ignored ->
playbackListener.isApproachingPlaybackEdge(playbackNearEndGapMillis));
}