Disable liveSeek function when specified start time is used.
This commit is contained in:
		
							parent
							
								
									d1e518ae9b
								
							
						
					
					
						commit
						caffcd9935
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1291,6 +1291,8 @@ namespace Mist{
 | 
			
		|||
  /// Aborts if not live, there is no main track or it has no keyframes.
 | 
			
		||||
  bool Output::liveSeek(bool rateOnly){
 | 
			
		||||
    if (!realTime){return false;}//Makes no sense when playing in turbo mode
 | 
			
		||||
    if (targetParams.count("start")){return false;} //disable seeking forward if start is given
 | 
			
		||||
    if (targetParams.count("recstart")){return false;} //disable seeking forward for pushes with start time
 | 
			
		||||
    if (maxSkipAhead == 1){return false;}//A skipAhead of 1 signifies disabling the skipping/rate control system entirely.
 | 
			
		||||
    if (!meta.getLive()){return false;}
 | 
			
		||||
    uint64_t seekPos = 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue