cast to output was not working for save

auto type conversion for save-as was broken
This commit is contained in:
John Cupitt 2012-01-26 17:37:57 +00:00
parent 2b5963090f
commit d2e7644e97

View File

@ -892,10 +892,12 @@ vips_foreign_convert_saveable( VipsForeignSave *save )
*/
g_object_ref( in );
/* Can this class save the coding we are in now? Nothing to do.
* Uncoded images may need to have their formats and bands clipped
* though.
*/
if( class->coding[in->Coding] ) {
if( in->Coding != VIPS_CODING_NONE &&
class->coding[in->Coding] ) {
VIPS_UNREF( save->ready );
save->ready = in;