New API function isoburn_disc_available_space() fixes bug with DVD+RW capacity

This commit is contained in:
2008-02-09 10:08:40 +00:00
parent 9d6b5f4fd9
commit 89bf2fe4da
5 changed files with 39 additions and 7 deletions

View File

@@ -399,6 +399,22 @@ void isoburn_disc_erase(struct burn_drive *drive, int fast)
}
off_t isoburn_disc_available_space(struct burn_drive *d,
struct burn_write_opts *opts)
{
int ret;
struct isoburn *o;
off_t avail;
ret= isoburn_find_emulator(&o, d, 0);
if(ret>0 && o!=NULL)
if(o->emulation_mode!=0)
burn_write_opts_set_start_byte(opts, ((off_t) o->nwa) * (off_t) 2048);
avail= burn_disc_available_space(d, opts);
return(avail);
}
int isoburn_disc_get_msc1(struct burn_drive *d, int *start_lba)
{
int ret;