... another vipsthumbnail fix

and it now warns about use of the old "sequential" flag
This commit is contained in:
John Cupitt 2013-10-01 13:31:42 +01:00
parent 35e8e63829
commit 461d619cde
2 changed files with 9 additions and 2 deletions

View File

@ -837,6 +837,13 @@ vips_foreign_load_build( VipsObject *object )
build( object ) ) build( object ) )
return( -1 ); return( -1 );
if( load->sequential ) {
vips_warn( class->nickname, "%s",
_( "ignoring deprecated \"sequential\" mode" ) );
vips_warn( class->nickname, "%s",
_( "please use \"access\" instead" ) );
}
g_object_set( object, "out", vips_image_new(), NULL ); g_object_set( object, "out", vips_image_new(), NULL );
vips_image_set_string( load->out, vips_image_set_string( load->out,

View File

@ -261,7 +261,7 @@ thumbnail_open( VipsObject *thumbnail, const char *filename )
jpegshrink ); jpegshrink );
if( vips_foreign_load( filename, &im, if( vips_foreign_load( filename, &im,
"sequential", TRUE, "access", VIPS_ACCESS_SEQUENTIAL,
"shrink", jpegshrink, "shrink", jpegshrink,
NULL ) ) NULL ) )
return( NULL ); return( NULL );
@ -271,7 +271,7 @@ thumbnail_open( VipsObject *thumbnail, const char *filename )
/* All other formats. /* All other formats.
*/ */
if( vips_foreign_load( filename, &im, if( vips_foreign_load( filename, &im,
"sequential", TRUE, "access", VIPS_ACCESS_SEQUENTIAL,
NULL ) ) NULL ) )
return( NULL ); return( NULL );
} }