mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-04 05:17:27 +08:00 
			
		
		
		
	Validate explicitly provided ffmpeg path. Closes #490
This commit is contained in:
		@ -193,7 +193,11 @@ func (c *config) GetMaxNumberOfReferencedSegmentsInPlaylist() int {
 | 
			
		||||
 | 
			
		||||
func (c *config) GetFFMpegPath() string {
 | 
			
		||||
	if c.FFMpegPath != "" {
 | 
			
		||||
		if err := verifyFFMpegPath(c.FFMpegPath); err == nil {
 | 
			
		||||
			return c.FFMpegPath
 | 
			
		||||
		} else {
 | 
			
		||||
			log.Errorln(c.FFMpegPath, "is an invalid path to ffmpeg.  Will try to use a copy in your path, if possible.")
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// First look to see if ffmpeg is in the current working directory
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user