1.24.1 Patches
From ZoneMinder Wiki
Jump to navigationJump to search
V4L2 restore control settings
Here is a simple patch that will restore the video control settings when zm is restarted when using a v4l2 driver.
*** zm/src/zm_local_camera.cpp 2009-04-10 09:49:56.000000000 -0500 --- zm-andy/src/zm_local_camera.cpp 2009-04-17 10:55:16.000000000 -0500 *************** void LocalCamera::Initialise() *** 489,494 **** --- 489,499 ---- { Fatal( "Failed to set video standard %d: %s", standard, strerror(errno) ); } + + Contrast(contrast); + Brightness(brightness); + Hue(hue); + Colour(colour); } else #endif // ZM_V4L2
This patch has been submitted by Andy ("genanr" forum member), originally posted at http://www.zoneminder.com/forums/viewtopic.php?p=52659#52659 , and has been accepted by ZM administrator to be put into the newer SVN/ ZM updates;