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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user