diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-11-30 18:12:30 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-11-30 18:12:30 -0800 |
commit | c56824f9e6fda0ad3439d55de034afe0fc612084 (patch) | |
tree | 6720b62a552a47ef6e1d023387274d8e3d33aee1 | |
parent | cef807002df9adaeabe8937510444f2372a6e784 (diff) | |
download | dsub-c56824f9e6fda0ad3439d55de034afe0fc612084.tar.gz dsub-c56824f9e6fda0ad3439d55de034afe0fc612084.tar.bz2 dsub-c56824f9e6fda0ad3439d55de034afe0fc612084.zip |
DLNA: fix a couple of issues with last commit
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/service/DLNAController.java | 1 | ||||
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/service/DownloadService.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/DLNAController.java b/app/src/main/java/github/daneren2005/dsub/service/DLNAController.java index f978c614..32c03306 100644 --- a/app/src/main/java/github/daneren2005/dsub/service/DLNAController.java +++ b/app/src/main/java/github/daneren2005/dsub/service/DLNAController.java @@ -630,6 +630,7 @@ public class DLNAController extends RemoteController { if(positionInfo.getTrackURI() != null && positionInfo.getTrackURI().equals(nextPlayingURI) && downloadService.getNextPlayerState() == PlayerState.PREPARED) { downloadService.onNextStarted(nextPlaying); + nextPlayingURI = null; } downloadService.postDelayed(new Runnable() { diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java index 788f929e..a271c020 100644 --- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java +++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java @@ -1198,6 +1198,7 @@ public class DownloadService extends Service { postPlayCleanup(); setCurrentPlaying(nextPlaying, true); setPlayerState(STARTED); + setNextPlayerState(IDLE); } public synchronized void pause() { |