From 9403948beeb421fe20d36b5fc0e8969113e043b3 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 8 Feb 2012 14:31:32 +0000 Subject: [PATCH] break cycle in new im_open() compat --- libvips/deprecated/lazy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libvips/deprecated/lazy.c b/libvips/deprecated/lazy.c index 2cd56e51..a2e9283d 100644 --- a/libvips/deprecated/lazy.c +++ b/libvips/deprecated/lazy.c @@ -283,7 +283,7 @@ vips__deprecated_open_read( const char *filename ) if( vips_format_is_vips( format ) ) { /* For vips format, we can just the main vips path. */ - return( im_open( filename, "rd" ) ); + return( vips_image_new_mode( filename, "rd" ) ); } else { /* For non-vips formats we must go via the old VipsFormat @@ -311,7 +311,7 @@ vips__deprecated_open_write( const char *filename ) if( vips_format_is_vips( format ) ) /* For vips format, we can just the main vips path. */ - return( im_open( filename, "w" ) ); + return( vips_image_new_mode( filename, "w" ) ); else { /* For non-vips formats we must go via the old VipsFormat * system to make sure we support the "filename:options"