mirror of
				https://github.com/rofafor/vdr-plugin-satip.git
				synced 2023-10-10 11:37:42 +00:00 
			
		
		
		
	Fixed keep-alive and retuning.
This commit is contained in:
		
							
								
								
									
										5
									
								
								tuner.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								tuner.c
									
									
									
									
									
								
							| @@ -207,6 +207,7 @@ bool cSatipTuner::Connect(void) | ||||
|            return true; | ||||
|            } | ||||
|         } | ||||
|      streamIdM = -1; | ||||
|      error("Connect failed [device %d]", deviceIdM); | ||||
|      } | ||||
|  | ||||
| @@ -412,8 +413,8 @@ bool cSatipTuner::KeepAlive(bool forceP) | ||||
|      keepAliveM.Set(timeoutM); | ||||
|      forceP = true; | ||||
|      } | ||||
|   if (forceP && !isempty(*streamAddrM) && (streamIdM > 0)) { | ||||
|      cString uri = cString::sprintf("rtsp://%s/stream=%d", *streamAddrM, streamIdM); | ||||
|   if (forceP && !isempty(*streamAddrM)) { | ||||
|      cString uri = cString::sprintf("rtsp://%s/", *streamAddrM); | ||||
|      if (!rtspM.Options(*uri)) | ||||
|         return false; | ||||
|      } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user