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:
stan 2004-03-15 21:39:15 +00:00
parent b9d8d7ee1b
commit 51ecf6424e
2 changed files with 4 additions and 10 deletions

View File

@ -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" );
} }

View File

@ -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" );
} }