parent
bd5c4757e8
commit
697555962a
|
@ -2,6 +2,8 @@
|
||||||
*
|
*
|
||||||
* 4/2/11
|
* 4/2/11
|
||||||
* - hacked up from various places
|
* - hacked up from various places
|
||||||
|
* 6/6/13
|
||||||
|
* - vips_image_write() didn't ref non-partial sources
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1754,13 +1756,11 @@ vips_image_write( VipsImage *image, VipsImage *out )
|
||||||
vips_demand_hint( out,
|
vips_demand_hint( out,
|
||||||
VIPS_DEMAND_STYLE_THINSTRIP, image, NULL );
|
VIPS_DEMAND_STYLE_THINSTRIP, image, NULL );
|
||||||
|
|
||||||
/* If this will be a delayed calculation we need to keep @image
|
/* We generate from @image partially, so we need to keep it about as
|
||||||
* around for as long as @out is about.
|
* long as @out is about.
|
||||||
*/
|
*/
|
||||||
if( vips_image_ispartial( image ) ) {
|
|
||||||
g_object_ref( image );
|
g_object_ref( image );
|
||||||
vips_object_local( out, image );
|
vips_object_local( out, image );
|
||||||
}
|
|
||||||
|
|
||||||
if( vips_image_generate( out,
|
if( vips_image_generate( out,
|
||||||
vips_start_one, vips_image_write_gen, vips_stop_one,
|
vips_start_one, vips_image_write_gen, vips_stop_one,
|
||||||
|
|
|
@ -418,7 +418,8 @@ render_work( VipsThreadState *state, void *a )
|
||||||
if( vips_region_prepare_to( state->reg, tile->region,
|
if( vips_region_prepare_to( state->reg, tile->region,
|
||||||
&tile->area, tile->area.left, tile->area.top ) ) {
|
&tile->area, tile->area.left, tile->area.top ) ) {
|
||||||
VIPS_DEBUG_MSG_RED( "render_work: "
|
VIPS_DEBUG_MSG_RED( "render_work: "
|
||||||
"vips_region_prepare_to() failed\n" );
|
"vips_region_prepare_to() failed: %s\n",
|
||||||
|
vips_error_buffer() );
|
||||||
return( -1 );
|
return( -1 );
|
||||||
}
|
}
|
||||||
tile->painted = TRUE;
|
tile->painted = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue