Skip to content

Commit

Permalink
No need to check for h264 onvif profile (#12444)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 authored Jul 14, 2024
1 parent 093201a commit 3afd77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frigate/ptz/onvif.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def _init_onvif(self, camera_name: str) -> bool:
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
Expand All @@ -103,6 +102,7 @@ def _init_onvif(self, camera_name: str) -> bool:
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
Expand Down

0 comments on commit 3afd77c

Please sign in to comment.