From 51ecf6424e22dee1ab3a4612e44b8cfb762cf538 Mon Sep 17 00:00:00 2001 From: stan Date: Mon, 15 Mar 2004 21:39:15 +0000 Subject: [PATCH] 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 --- web/zm_html_view_montagefeed.php | 7 ++----- web/zm_html_view_watchfeed.php | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/web/zm_html_view_montagefeed.php b/web/zm_html_view_montagefeed.php index 7685e0461..27b8cc101 100644 --- a/web/zm_html_view_montagefeed.php +++ b/web/zm_html_view_montagefeed.php @@ -45,11 +45,8 @@ $scale = (int)(($width_scale<$height_scale)?$width_scale:$height_scale); 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" ) header("Refresh: ".REFRESH_IMAGE."; URL=$PHP_SELF?view=montagefeed&mid=$mid&mode=still&scale=$scale" ); } diff --git a/web/zm_html_view_watchfeed.php b/web/zm_html_view_watchfeed.php index 39ede8322..ae71f9801 100644 --- a/web/zm_html_view_watchfeed.php +++ b/web/zm_html_view_watchfeed.php @@ -42,11 +42,8 @@ $monitor = mysql_fetch_assoc( $result ); 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" ) header("Refresh: ".REFRESH_IMAGE."; URL=$PHP_SELF?view=watchfeed&mid=$mid&mode=still&scale=$scale" ); }