diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-03-14 17:56:39 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-03-14 17:56:39 -0700 |
commit | 2ecac5a15b00ec1116b0cdc61d6543d6b1fe8e9d (patch) | |
tree | f2d94e65e3806f9c06241aaad883c739fbd3beab /app/src/main/java | |
parent | b9eadfc8f873c35ddd2a4632ec37e6b384e7b21f (diff) | |
download | dsub-2ecac5a15b00ec1116b0cdc61d6543d6b1fe8e9d.tar.gz dsub-2ecac5a15b00ec1116b0cdc61d6543d6b1fe8e9d.tar.bz2 dsub-2ecac5a15b00ec1116b0cdc61d6543d6b1fe8e9d.zip |
Fix for DLNA devices sending X_DLNA_SeekTime
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/service/DLNAController.java | 5 |
1 files changed, 4 insertions, 1 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 0673cdeb..dd59f8fa 100644 --- a/app/src/main/java/github/daneren2005/dsub/service/DLNAController.java +++ b/app/src/main/java/github/daneren2005/dsub/service/DLNAController.java @@ -163,7 +163,10 @@ public class DLNAController extends RemoteController { protected void eventReceived(GENASubscription genaSubscription) { Map<String, StateVariableValue> m = genaSubscription.getCurrentValues(); try { - LastChange lastChange = new LastChange(new AVTransportLastChangeParser(), m.get("LastChange").toString()); + String lastChangeText = m.get("LastChange").toString(); + lastChangeText = lastChangeText.replace(",X_DLNA_SeekTime",""); + LastChange lastChange = new LastChange(new AVTransportLastChangeParser(), lastChangeText); + if (lastChange.getEventedValue(0, AVTransportVariable.TransportState.class) == null) { return; } |