Make sure an initial image is generated in stills mode.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@964 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
b9d8d7ee1b
commit
51ecf6424e
|
@ -45,11 +45,8 @@ $scale = (int)(($width_scale<$height_scale)?$width_scale:$height_scale);
|
||||||
|
|
||||||
if ( $mode != "stream" )
|
if ( $mode != "stream" )
|
||||||
{
|
{
|
||||||
if ( !ZM_WEB_DOUBLE_BUFFER )
|
// Prompt an image to be generated
|
||||||
{
|
createImage( $monitor, $scale );
|
||||||
// Prompt an image to be generated
|
|
||||||
createImage( $monitor, $scale );
|
|
||||||
}
|
|
||||||
if ( ZM_WEB_REFRESH_METHOD == "http" )
|
if ( ZM_WEB_REFRESH_METHOD == "http" )
|
||||||
header("Refresh: ".REFRESH_IMAGE."; URL=$PHP_SELF?view=montagefeed&mid=$mid&mode=still&scale=$scale" );
|
header("Refresh: ".REFRESH_IMAGE."; URL=$PHP_SELF?view=montagefeed&mid=$mid&mode=still&scale=$scale" );
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,11 +42,8 @@ $monitor = mysql_fetch_assoc( $result );
|
||||||
|
|
||||||
if ( $mode != "stream" )
|
if ( $mode != "stream" )
|
||||||
{
|
{
|
||||||
if ( !ZM_WEB_DOUBLE_BUFFER )
|
// Prompt an image to be generated
|
||||||
{
|
createImage( $monitor, $scale );
|
||||||
// Prompt an image to be generated
|
|
||||||
createImage( $monitor, $scale );
|
|
||||||
}
|
|
||||||
if ( ZM_WEB_REFRESH_METHOD == "http" )
|
if ( ZM_WEB_REFRESH_METHOD == "http" )
|
||||||
header("Refresh: ".REFRESH_IMAGE."; URL=$PHP_SELF?view=watchfeed&mid=$mid&mode=still&scale=$scale" );
|
header("Refresh: ".REFRESH_IMAGE."; URL=$PHP_SELF?view=watchfeed&mid=$mid&mode=still&scale=$scale" );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue