mirror of
				https://github.com/rofafor/vdr-plugin-satip.git
				synced 2023-10-10 11:37:42 +00:00 
			
		
		
		
	Refactored the frontend attaching/detaching signaling.
This commit is contained in:
		
							
								
								
									
										8
									
								
								tuner.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								tuner.c
									
									
									
									
									
								
							| @@ -25,8 +25,8 @@ cSatipTuner::cSatipTuner(cSatipDeviceIf &deviceP, unsigned int packetLenP) | ||||
|   rtcpM(*this), | ||||
|   streamAddrM(""), | ||||
|   streamParamM(""), | ||||
|   currentServerM(NULL, 0), | ||||
|   nextServerM(NULL, 0), | ||||
|   currentServerM(NULL, deviceP.GetId(), 0), | ||||
|   nextServerM(NULL, deviceP.GetId(), 0), | ||||
|   mutexM(), | ||||
|   reConnectM(), | ||||
|   keepAliveM(), | ||||
| @@ -205,7 +205,7 @@ bool cSatipTuner::Connect(void) | ||||
|               currentServerM = nextServerM; | ||||
|               nextServerM.Reset(); | ||||
|               } | ||||
|            currentServerM.Use(true); | ||||
|            currentServerM.Attach(); | ||||
|            return true; | ||||
|            } | ||||
|         } | ||||
| @@ -237,7 +237,7 @@ bool cSatipTuner::Disconnect(void) | ||||
|   signalQualityM = -1; | ||||
|   frontendIdM = -1; | ||||
|  | ||||
|   currentServerM.Use(false); | ||||
|   currentServerM.Detach(); | ||||
|   statusUpdateM.Set(0); | ||||
|   timeoutM = eMinKeepAliveIntervalMs; | ||||
|   pmtPidM = -1; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user