Allowed -dummy burns with stdio-drives (because /dev/null is no block device)

ZeroFourZero
Thomas Schmitt 15 years ago
parent df382b3f06
commit 40cb77d953
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 1
      libburn/drive.c
  3. 3
      libburn/write.c

@ -1 +1 @@
#define Cdrskin_timestamP "2007.09.08.102620"
#define Cdrskin_timestamP "2007.09.08.132058"

@ -1972,6 +1972,7 @@ int burn_disc_get_multi_caps(struct burn_drive *d, enum burn_write_types wt,
o->might_do_sao = 4;
o->might_do_tao = 2;
o->advised_write_mode = BURN_WRITE_TAO;
o->might_simulate = 1;
} else if (s != BURN_DISC_BLANK && s != BURN_DISC_APPENDABLE) {
return 0;
} else if (s == BURN_DISC_APPENDABLE &&

@ -1868,7 +1868,8 @@ int burn_stdio_write_track(struct burn_write_opts *o, struct burn_session *s,
ret = bufsize;
}
t->sourcecount += ret;
ret = burn_stdio_write(fd, buf, ret, d, 0);
if (!o->simulate)
ret = burn_stdio_write(fd, buf, ret, d, 0);
if (ret <= 0)
return ret;

Loading…
Cancel
Save