Skip to content

Commit

Permalink
Do not expect video_controls from MMAL cams
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrisan committed Mar 11, 2019
1 parent 4685773 commit 443ab40
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions motioneye/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,9 +811,10 @@ def motion_camera_ui_to_dict(ui, prev_config=None):

threshold = int(float(ui['frame_change_threshold']) * width * height / 100)

# video controls
vid_control_params = (('%s=%s' % (n, c['value'])) for n, c in ui['video_controls'].items())
data['vid_control_params'] = ','.join(vid_control_params)
if proto == 'v4l2':
# video controls
vid_control_params = (('%s=%s' % (n, c['value'])) for n, c in ui['video_controls'].items())
data['vid_control_params'] = ','.join(vid_control_params)

else: # assuming netcam
if data.get('netcam_url', prev_config.get('netcam_url', '')).startswith('rtsp'):
Expand Down

0 comments on commit 443ab40

Please sign in to comment.