Workaround for crash when Windows Media Player is active.

This commit is contained in:
Felix Ableitner 2013-12-16 01:21:58 +01:00
parent 33c6eababa
commit d950487610

View file

@ -490,8 +490,8 @@ public class RemotePlayService extends Service implements RegistryListener {
device instanceof RemoteDevice) { device instanceof RemoteDevice) {
mDevices.put(device.getIdentity().getUdn().toString(), device); mDevices.put(device.getIdentity().getUdn().toString(), device);
mUpnpService.getControlPoint().execute( try {
new GetVolume(rc) { mUpnpService.getControlPoint().execute(new GetVolume(rc) {
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
@Override @Override
@ -525,6 +525,11 @@ public class RemotePlayService extends Service implements RegistryListener {
} }
}); });
} }
catch (IllegalArgumentException e) {
e.printStackTrace();
return;
}
}
} }
/** /**