Merge pull request #2912 from mauriciocolli/fix-wrong-thread-access

Fix for player access out of its creation thread
This commit is contained in:
Tobias Groza 2019-12-31 10:55:12 +01:00 committed by GitHub
commit 209dc5ace9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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