mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	RTC: check audio track exist when negotiate (#2729)
This commit is contained in:
		
							parent
							
								
									5c09dec224
								
							
						
					
					
						commit
						469bd8cfe2
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -659,6 +659,9 @@ std::vector<SrsRtcTrackDescription*> SrsRtcSource::get_track_desc(std::string ty
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    if (type == "audio") {
 | 
			
		||||
        if (! stream_desc_->audio_track_desc_) {
 | 
			
		||||
            return track_descs;
 | 
			
		||||
        }
 | 
			
		||||
        if (stream_desc_->audio_track_desc_->media_->name_ == media_name) {
 | 
			
		||||
            track_descs.push_back(stream_desc_->audio_track_desc_);
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue