mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	RTC: Trim SDP line space for pion/webrtc client. (#2466)
This commit is contained in:
		
							parent
							
								
									67ebd08342
								
							
						
					
					
						commit
						77c958ad1c
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -747,6 +747,9 @@ srs_error_t SrsSdp::parse(const std::string& sdp_str)
 | 
			
		|||
            line.erase(line.size()-1, 1);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Strip the space of line, for pion WebRTC client.
 | 
			
		||||
        line = srs_string_trim_end(line, " ");
 | 
			
		||||
 | 
			
		||||
        if ((err = parse_line(line)) != srs_success) {
 | 
			
		||||
            return srs_error_wrap(err, "parse sdp line failed");
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue