Motion - Bug Report 2006x 01x 09x 175603

BUG: sql_mask not initialisated correctly

sql_mask is not initialisated correctly , so first event is not logged in mysql because sql_mask is always 0 at first event call.

Test case

Using last daily snap of motion ( motion-20060109-051002 ) and with these parameters in motion.conf ( only parameters related to this issue ):

ffmpeg_cap_new on
ffmpeg_timelapse 1
ffmpeg_timelapse_mode daily

sql_log_timelapse on

mysql_db xxxxx
mysql_host localhost
mysql_user xxxxx
mysql_password xxxxx

motion doesn't log the first event ( timelapse video creation ) because sql_mask is 0 and it should 32.

Environment

Motion version: 3.2.4
ffmpeg version: 0.cvs20050918-4ubuntu1
Shared libraries: ffmpeg, mysql, postgresql
Server OS: ubuntu breezy , kernel 2.6.12-9-k7

-- AngelCarpintero - 09 Jan 2006

Follow up

Fix record

The patch attached fix the problem adding the initialisation of sql_mask in motion_init().


I have updated the sources. Thanks for the fix.

-- KennethLavrsen - 09 Jan 2006

In 3.2.5

-- KennethLavrsen - 20 Oct 2006
Topic revision: r3 - 20 Oct 2006, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.