chdman: fixed -extractcd of images with postgaps. CHDs do not need reconversion, this was an -extractcd problem only. [R. Belmont]

This commit is contained in:
R. Belmont 2011-12-31 02:49:25 +00:00
parent 5a0ec84b62
commit 9acf3375ed
2 changed files with 4 additions and 1 deletions

View File

@ -829,6 +829,9 @@ chd_error cdrom_parse_metadata(chd_file *chd, cdrom_toc *toc)
track->pgsubsize = 0;
cdrom_convert_type_string_to_pregap_info(pgtype, track);
cdrom_convert_subtype_string_to_pregap_info(pgsub, track);
/* set the postgap info */
track->postgap = postgap;
}
/* if we got any tracks this way, we're done */

View File

@ -1661,7 +1661,7 @@ static int do_extractcd(int argc, char *argv[], int param)
f %= 75;
m = s / 60;
s %= 60;
fprintf(outfile, " POSTGAP %02d:%02d:%02d\n", m, s, f);
fprintf(outfile, " POSTGAP %02d:%02d:%02d\n", m, s, f);
}
}
else