File tree Expand file tree Collapse file tree
android/sdl_android/src/main/java/com/smartdevicelink/managers/video Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ public class VideoStreamManager extends BaseVideoStreamManager {
117117 private String vehicleMake = null ;
118118 private boolean isEncrypted = false ;
119119 private boolean withPendingRestart = false ;
120+ private boolean wasCapabilityListenerAdded = false ;
120121 private AbstractPacketizer videoPacketizer ;
121122
122123 // INTERNAL INTERFACES
@@ -188,7 +189,10 @@ public void onNotified(RPCNotification notification) {
188189 if (VideoStreamManager .this .parameters == null ) {
189190 getVideoStreamingParams ();
190191 }
191- internalInterface .getSystemCapabilityManager ().addOnSystemCapabilityListener (SystemCapabilityType .VIDEO_STREAMING , systemCapabilityListener );
192+ if (!wasCapabilityListenerAdded ) {
193+ wasCapabilityListenerAdded = true ;
194+ internalInterface .getSystemCapabilityManager ().addOnSystemCapabilityListener (SystemCapabilityType .VIDEO_STREAMING , systemCapabilityListener );
195+ }
192196 }
193197 checkState ();
194198 if (hasStarted && (isHMIStateVideoStreamCapable (prevOnHMIStatus )) && (!isHMIStateVideoStreamCapable (currentOnHMIStatus ))) {
You can’t perform that action at this time.
0 commit comments