rework layerbreak workaround trunk tip
authornathan
Sun, 22 Dec 2013 11:59:05 +0100
branchtrunk
changeset 18b00641305fed
parent 17 4879fdaac574
rework layerbreak workaround
cdbackup.c
     1.1 --- a/cdbackup.c	Sun Dec 01 13:30:48 2013 +0100
     1.2 +++ b/cdbackup.c	Sun Dec 22 11:59:05 2013 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /* cdbackup.c
     1.5 -Copyright (c) 2000-2012 Craig Condit, Stefan Huelswitt.
     1.6 +Copyright (c) 2000-2013 Craig Condit, Stefan Huelswitt.
     1.7  
     1.8  Redistribution and use in source and binary forms, with or without
     1.9  modification, are permitted provided that the following conditions are met: 
    1.10 @@ -110,7 +110,7 @@
    1.11      /* work around the oddidity that cdrecord refuses to burn the disk, if
    1.12         the tracksize is less than the first layer size on dual-layer disks */
    1.13      if(layerbreak>0 && secs<layerbreak)
    1.14 -      *p++=make_arg("driveropts=layerbreak=%ld",layerbreak);
    1.15 +      *p++=make_arg("padsize=%lds",layerbreak-secs+1);
    1.16      }
    1.17    else {
    1.18      *p++="-multi";
    1.19 @@ -196,7 +196,7 @@
    1.20    while ((i=getopt(argc,argv,"d:r:l:s:p:a:c:mvVXDCi:wRE:"))>0) {
    1.21      switch (i) {
    1.22         case 'V': fprintf(stderr,"cdbackup "VERSION" (compiled "__DATE__")\n"
    1.23 -	                        "Copyright (C) 2000-2010\n"
    1.24 +	                        "Copyright (C) 2000-2013\n"
    1.25  			        "This is free software; see the source for copying conditions.\n"
    1.26  			        "There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n"
    1.27  			        "PARTICULAR PURPOSE.\n");