This commit is contained in:
John Cupitt 2011-11-28 09:39:20 +00:00
parent b9db7249f4
commit 5eb684bff7
2 changed files with 18 additions and 6 deletions

13
TODO
View File

@ -1,11 +1,20 @@
- make compat wrappers for old im_jpeg2vips() and im_vips2jpeg() - do jpegbuffer load and save
need a jpegsave base class, with subclasses for save to file and save to
buffer
same for jpegload
make compat wrappers for old im_jpeg2vips() and im_vips2jpeg()
make sure we are using the operation cache for jpegload make sure we are using the operation cache for jpegload
move format/* to deprecated have something to print the cache before we flush it?
try tiff load try tiff load
move format/* to deprecated

View File

@ -82,14 +82,17 @@ vips_file_load_vips_header( VipsFileLoad *load )
if( !(out2 = vips_image_new_from_file( file->filename )) ) if( !(out2 = vips_image_new_from_file( file->filename )) )
return( -1 ); return( -1 );
/* Unref the @out that's there now. /* Remove the @out that's there now.
*/ */
g_object_get( load, "out", &out, NULL ); g_object_get( load, "out", &out, NULL );
g_object_unref( out );
g_object_unref( out );
g_object_set( load, "out", out2, NULL ); g_object_set( load, "out", out2, NULL );
/* Unref after we install the new out to make sure load isn't
* disposed.
*/
g_object_unref( out );
g_object_unref( out );
return( 0 ); return( 0 );
} }