Avoiding to inquire spare area of unsuitable media
This commit is contained in:
parent
7ceb67f0b0
commit
28ae78b4f1
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2010.09.24.100255"
|
#define Cdrskin_timestamP "2010.09.28.101043"
|
||||||
|
@ -4325,9 +4325,13 @@ ex:;
|
|||||||
int mmc_get_bd_spare_info(struct burn_drive *d,
|
int mmc_get_bd_spare_info(struct burn_drive *d,
|
||||||
int *alloc_blocks, int *free_blocks, int flag)
|
int *alloc_blocks, int *free_blocks, int flag)
|
||||||
{
|
{
|
||||||
int ret, reply_len;
|
int ret, reply_len, prf;
|
||||||
char *reply = NULL;
|
char *reply = NULL;
|
||||||
|
|
||||||
|
prf = d->current_profile;
|
||||||
|
if (!(prf == 0x41 || prf == 0x43 || prf == 0x42))
|
||||||
|
return 0; /* Not a BD loaded */
|
||||||
|
|
||||||
ret = mmc_read_disc_structure(d, 1, 0, 0x0a, 12, &reply,
|
ret = mmc_read_disc_structure(d, 1, 0, 0x0a, 12, &reply,
|
||||||
&reply_len, 0);
|
&reply_len, 0);
|
||||||
if (ret <= 0)
|
if (ret <= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user