2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 15:21:32 +00:00

Once image type has been set, do not autoprobe further

This commit is contained in:
Michael Brown 2007-01-14 15:25:23 +00:00
parent 99272f958b
commit c1fd6e8dc7

View File

@ -155,6 +155,11 @@ int image_autoload ( struct image *image ) {
struct image_type *type;
int rc;
/* If image already has a type, use it */
if ( image->type )
return image_load ( image );
/* Otherwise probe for a suitable type */
for ( type = image_types ; type < image_types_end ; type++ ) {
DBGC ( image, "IMAGE %p trying type %s\n", image, type->name );
rc = image_load_type ( image, type );