Allow a status parameter in mmc_get_disc_eraseable to be NULL. Suggested by Frank Endres on libcdio-devel mailing list.

This commit is contained in:
R. Bernstein
2010-01-31 07:46:48 -05:00
parent f112a399d7
commit a08a1f5149
3 changed files with 27 additions and 17 deletions

View File

@@ -85,7 +85,10 @@ tmmc_get_disc_erasable(const CdIo_t *p_cdio, const char *psz_source,
{
driver_return_code_t drc;
bool b_erasable = mmc_get_disc_erasable(p_cdio, &drc);
printf("Disc is %serasable.\n", b_erasable ? "" : "not ");
if (verbose)
printf("Disc is %serasable.\n", b_erasable ? "" : "not ");
/* Try also with NULL. */
b_erasable = mmc_get_disc_erasable(p_cdio, NULL);
return drc;
}