diff options
author | Joey Grover <joeygrover@gmail.com> | 2017-12-21 14:07:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-21 14:07:36 -0500 |
commit | 90a1a009fb720a3526d587f9d3e1c73875e61018 (patch) | |
tree | f978a95e744f745d19e4af266e59ec84c6babd20 | |
parent | 83c28f5dcd40214fdaedd9013f9bbe60264ed319 (diff) | |
parent | 1093a8b9587df3aa7b2c91c2611e2bfaa131eb01 (diff) | |
download | sdl_android-90a1a009fb720a3526d587f9d3e1c73875e61018.tar.gz |
Merge pull request #653 from smartdevicelink/bugfix/issue_652
bugfix / issue 652
-rw-r--r-- | sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyBase.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyBase.java b/sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyBase.java index a27f4a1fb..9dfbc4af6 100644 --- a/sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyBase.java +++ b/sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyBase.java @@ -6299,10 +6299,14 @@ public abstract class SdlProxyBase<proxyListenerType extends IProxyListenerBase> public void stopStreaming(){
if(remoteDisplay!=null){
remoteDisplay.stop();
+ remoteDisplay = null;
}
if(encoder!=null){
encoder.shutDown();
}
+ if(internalInterface!=null){
+ internalInterface.stopVideoService();
+ }
}
public void dispose(){
@@ -6386,9 +6390,10 @@ public abstract class SdlProxyBase<proxyListenerType extends IProxyListenerBase> @Override
public void onServiceEnded(SdlSession session, SessionType type) {
if(SessionType.NAV.equals(type)){
- dispose();
+ if(remoteDisplay!=null){
+ stopStreaming();
+ }
}
-
}
@Override
|