Avoid undefined 43h commands (TOC/ATIP) with non-CD
This commit is contained in:
parent
b02b2a40e7
commit
1b1ef5a31d
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2006.12.20.142301"
|
#define Cdrskin_timestamP "2006.12.20.145222"
|
||||||
|
@ -191,7 +191,8 @@ int burn_drive_inquire_media(struct burn_drive *d)
|
|||||||
#endif /* ! Libburn_grab_release_and_grab_agaiN */
|
#endif /* ! Libburn_grab_release_and_grab_agaiN */
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
d->read_toc(d);
|
if (d->current_profile == -1 || d->current_is_cd_profile)
|
||||||
|
d->read_toc(d);
|
||||||
}
|
}
|
||||||
d->busy = BURN_DRIVE_IDLE;
|
d->busy = BURN_DRIVE_IDLE;
|
||||||
return 1;
|
return 1;
|
||||||
@ -1232,8 +1233,13 @@ int burn_disc_read_atip(struct burn_drive *d)
|
|||||||
0, 0);
|
0, 0);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
d->read_atip(d);
|
if (d->current_profile == -1 || d->current_is_cd_profile) {
|
||||||
/* >>> some control of success would be nice :) */
|
d->read_atip(d);
|
||||||
|
/* >>> some control of success would be nice :) */
|
||||||
|
} else {
|
||||||
|
/* mmc5r03c.pdf 6.26.3.6.3 : ATIP is undefined for non-CD */;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -553,7 +553,8 @@ void mmc_read_disc_info(struct burn_drive *d)
|
|||||||
case 1:
|
case 1:
|
||||||
d->status = BURN_DISC_APPENDABLE;
|
d->status = BURN_DISC_APPENDABLE;
|
||||||
case 2:
|
case 2:
|
||||||
mmc_read_toc(d);
|
if (d->current_profile == -1 || d->current_is_cd_profile)
|
||||||
|
mmc_read_toc(d);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user