Allowed isoburn_disc_get_msc1() for closed media

This commit is contained in:
Thomas Schmitt 2007-10-01 17:59:58 +00:00
parent e0333e1e33
commit 6e71cb7f5b

View File

@ -11,11 +11,10 @@
/* <<< A70929 : hardcoded CD-RW with fabricated -msinfo = 0,1600 /* <<< A70929 : hardcoded CD-RW with fabricated -msinfo = 0,1600
#define Hardcoded_cd_rW 1 #define Hardcoded_cd_rW 1
#define Hardcoded_cd_rw_c1 0 #define Hardcoded_cd_rw_c1 12999
#define Hardcoded_cd_rw_nwA 1600 #define Hardcoded_cd_rw_nwA 152660
*/ */
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#include <sys/types.h> #include <sys/types.h>
@ -245,7 +244,8 @@ int isoburn_disc_get_msc1(struct burn_drive *d, int *start_lba)
return(1); return(1);
#endif #endif
if(isoburn_disc_get_status(d)!=BURN_DISC_APPENDABLE) if(isoburn_disc_get_status(d)!=BURN_DISC_APPENDABLE &&
isoburn_disc_get_status(d)!=BURN_DISC_FULL)
return(0); return(0);
ret= isoburn_find_emulator(&o, d, 0); ret= isoburn_find_emulator(&o, d, 0);
if(ret<0) if(ret<0)
@ -305,6 +305,7 @@ void isoburn_disc_write(struct burn_write_opts *opts, struct burn_disc *disc)
#ifdef Hardcoded_cd_rW #ifdef Hardcoded_cd_rW
/* <<< A70929 : hardcoded CD-RW with fabricated -msinfo */ /* <<< A70929 : hardcoded CD-RW with fabricated -msinfo */
fprintf(stderr, "Setting write address to LBA %d\n", Hardcoded_cd_rw_nwA);
burn_write_opts_set_start_byte(opts, burn_write_opts_set_start_byte(opts,
((off_t) Hardcoded_cd_rw_nwA) * (off_t) 2048); ((off_t) Hardcoded_cd_rw_nwA) * (off_t) 2048);
#endif #endif