stuff
This commit is contained in:
parent
936a89bf3e
commit
f1d04ee443
@ -31,8 +31,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*/
|
|
||||||
#define VIPS_DEBUG
|
#define VIPS_DEBUG
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
@ -160,6 +160,9 @@ sink_progress( void *a )
|
|||||||
{
|
{
|
||||||
Sink *sink = (Sink *) 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
|
/* Trigger any eval callbacks on our source image and
|
||||||
* check for errors.
|
* check for errors.
|
||||||
*/
|
*/
|
||||||
|
@ -142,9 +142,12 @@ int
|
|||||||
im__handle_eval( IMAGE *im, int w, int h )
|
im__handle_eval( IMAGE *im, int w, int h )
|
||||||
{
|
{
|
||||||
if( im->progress ) {
|
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 ) )
|
if( update_time( im->progress->time, w, h ) )
|
||||||
return( -1 );
|
return( -1 );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user