This commit is contained in:
John Cupitt 2010-04-29 13:49:28 +00:00
parent 936a89bf3e
commit f1d04ee443
2 changed files with 9 additions and 3 deletions

View File

@ -31,8 +31,8 @@
*/
/*
*/
#define VIPS_DEBUG
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
@ -160,6 +160,9 @@ sink_progress( void *a )
{
Sink *sink = (Sink *) a;
VIPS_DEBUG_MSG( "sink_progress: %d x %d\n",
sink->tile_width, sink->tile_height );
/* Trigger any eval callbacks on our source image and
* check for errors.
*/

View File

@ -142,9 +142,12 @@ int
im__handle_eval( IMAGE *im, int w, int h )
{
if( im->progress ) {
/* Need to test ->time, it may have been shut down.
/* Need to test ->time, it may have been shut down. Also, only
* bother updating the time struct if we have a callback that
* might be interested.
*/
if( im->progress->time ) {
if( im->progress->time &&
im->progress->evalfns ) {
if( update_time( im->progress->time, w, h ) )
return( -1 );
}