mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	RTC: Remove dead code
This commit is contained in:
		
							parent
							
								
									87ffb7071a
								
							
						
					
					
						commit
						5afabe4adf
					
				
					 3 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -418,7 +418,7 @@ srs_error_t SrsRtcServer::create_session(
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    // TODO: FIXME: Refine the API for stream status manage.
 | 
			
		||||
    if (publish && !source->can_publish(false)) {
 | 
			
		||||
    if (publish && !source->can_publish()) {
 | 
			
		||||
        return srs_error_new(ERROR_RTC_SOURCE_BUSY, "stream %s busy", req->get_stream_url().c_str());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -406,7 +406,7 @@ void SrsRtcStream::on_consumer_destroy(SrsRtcConsumer* consumer)
 | 
			
		|||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool SrsRtcStream::can_publish(bool is_edge)
 | 
			
		||||
bool SrsRtcStream::can_publish()
 | 
			
		||||
{
 | 
			
		||||
    return _can_publish;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -178,8 +178,8 @@ public:
 | 
			
		|||
    // @param dg, whether dumps the gop cache.
 | 
			
		||||
    virtual srs_error_t consumer_dumps(SrsRtcConsumer* consumer, bool ds = true, bool dm = true, bool dg = true);
 | 
			
		||||
    virtual void on_consumer_destroy(SrsRtcConsumer* consumer);
 | 
			
		||||
    // TODO: FIXME: Remove the param is_edge.
 | 
			
		||||
    virtual bool can_publish(bool is_edge);
 | 
			
		||||
    // Whether we can publish stream to the source, return false if it exists.
 | 
			
		||||
    virtual bool can_publish();
 | 
			
		||||
    // When start publish stream.
 | 
			
		||||
    virtual srs_error_t on_publish();
 | 
			
		||||
    // When stop publish stream.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue