mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	SRT: use default streamid when empty (#3202)
* SRT: use default streamid when empty * Fix #3198: SRT: Support PUSH SRT by IP and optional port. v5.0.76 Co-authored-by: winlin <winlin@vip.126.com>
This commit is contained in:
		
							parent
							
								
									c12deded98
								
							
						
					
					
						commit
						f1be2ebd3b
					
				
					 3 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -256,9 +256,10 @@ srs_error_t SrsMpegtsSrtConn::do_cycle()
 | 
			
		|||
        return srs_error_wrap(err, "get srt streamid");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Must have streamid, because srt ts packet will convert to rtmp or rtc.
 | 
			
		||||
    // If streamid empty, using default streamid instead.
 | 
			
		||||
    if (streamid.empty()) {
 | 
			
		||||
        return srs_error_new(ERROR_SRT_CONN, "empty srt streamid");
 | 
			
		||||
        streamid = "#!::r=live/livestream,m=publish";
 | 
			
		||||
        srs_warn("srt get empty streamid, using default steramid %s instead", streamid.c_str());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Detect streamid of srt to request.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue