mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	No need to check for h264 onvif profile (#12444)
This commit is contained in:
		
							parent
							
								
									093201a1cc
								
							
						
					
					
						commit
						3afd77cbe0
					
				@ -94,7 +94,6 @@ class OnvifController:
 | 
			
		||||
        for key, onvif_profile in enumerate(profiles):
 | 
			
		||||
            if (
 | 
			
		||||
                onvif_profile.VideoEncoderConfiguration
 | 
			
		||||
                and onvif_profile.VideoEncoderConfiguration.Encoding == "H264"
 | 
			
		||||
                and onvif_profile.PTZConfiguration
 | 
			
		||||
                and (
 | 
			
		||||
                    onvif_profile.PTZConfiguration.DefaultContinuousPanTiltVelocitySpace
 | 
			
		||||
@ -103,6 +102,7 @@ class OnvifController:
 | 
			
		||||
                    is not None
 | 
			
		||||
                )
 | 
			
		||||
            ):
 | 
			
		||||
                # use the first profile that has a valid ptz configuration
 | 
			
		||||
                profile = onvif_profile
 | 
			
		||||
                logger.debug(f"Selected Onvif profile for {camera_name}: {profile}")
 | 
			
		||||
                break
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user