(Hopefully) fix output segfaults on full shared memory page
This commit is contained in:
		
							parent
							
								
									20812842b9
								
							
						
					
					
						commit
						41039483d3
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -359,9 +359,9 @@ namespace Mist{
 | 
				
			||||||
    if (isPushing()){return;}
 | 
					    if (isPushing()){return;}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //live streams that are no push outputs (recordings), wait for stream to be ready
 | 
					    //live streams that are no push outputs (recordings), wait for stream to be ready
 | 
				
			||||||
    if (!isRecording() && M.getLive() && !isReadyForPlay()){
 | 
					    if (!isRecording() && M && M.getLive() && !isReadyForPlay()){
 | 
				
			||||||
      uint64_t waitUntil = Util::bootSecs() + 45;
 | 
					      uint64_t waitUntil = Util::bootSecs() + 45;
 | 
				
			||||||
      while (M.getLive() && !isReadyForPlay()){
 | 
					      while (M && M.getLive() && !isReadyForPlay()){
 | 
				
			||||||
        if (Util::bootSecs() > waitUntil || (!userSelect.size() && Util::bootSecs() > waitUntil)){
 | 
					        if (Util::bootSecs() > waitUntil || (!userSelect.size() && Util::bootSecs() > waitUntil)){
 | 
				
			||||||
          INFO_MSG("Giving up waiting for playable tracks. IP: %s", getConnectedHost().c_str());
 | 
					          INFO_MSG("Giving up waiting for playable tracks. IP: %s", getConnectedHost().c_str());
 | 
				
			||||||
          break;
 | 
					          break;
 | 
				
			||||||
| 
						 | 
					@ -371,6 +371,7 @@ namespace Mist{
 | 
				
			||||||
        stats();
 | 
					        stats();
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    if (!M){return;}
 | 
				
			||||||
    //Finally, select the default tracks
 | 
					    //Finally, select the default tracks
 | 
				
			||||||
    selectDefaultTracks();
 | 
					    selectDefaultTracks();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue