Enabled fast blank for DVD-R[W]

This commit is contained in:
Thomas Schmitt 2007-02-06 18:57:38 +00:00
parent 72d5430358
commit cad9c14849
3 changed files with 12 additions and 14 deletions

View File

@ -1813,6 +1813,10 @@ return:
"\tformat_overwrite_quickest\tto \"Restricted Overwrite intermediate\"\n"); "\tformat_overwrite_quickest\tto \"Restricted Overwrite intermediate\"\n");
fprintf(stderr, fprintf(stderr,
"\tformat_overwrite_full\tfull-size format a DVD-RW or DVD+RW\n"); "\tformat_overwrite_full\tfull-size format a DVD-RW or DVD+RW\n");
fprintf(stderr,
"\tdeformat_sequential\tfully blank, even formatted DVD-RW\n");
fprintf(stderr,
"\tdeformat_sequential_quickest\tminimally blank, even DVD-RW\n");
#else /* ! Cdrskin_extra_leaN */ #else /* ! Cdrskin_extra_leaN */
@ -3985,12 +3989,8 @@ int Cdrskin_blank(struct CdrskiN *skin, int flag)
/* Forceful blanking to Sequential Recording for DVD-R[W] and CD-RW */ /* Forceful blanking to Sequential Recording for DVD-R[W] and CD-RW */
if(!(profile_number == 0x14 || profile_number == 0x13 || if(!(profile_number == 0x14 || profile_number == 0x13 ||
profile_number == 0x11 || profile_number == 0x0a)) profile_number == 0x0a))
goto unsupported_format_type; goto unsupported_format_type;
if(s==BURN_DISC_UNSUITABLE)
fprintf(stderr,
"cdrskin: NOTE : blank=%s accepted not yet suitable media\n",
fmt_text);
} else if (do_format==1) { } else if (do_format==1) {
/* Formatting to become overwriteable for DVD-RW and DVD+RW */ /* Formatting to become overwriteable for DVD-RW and DVD+RW */
@ -4049,6 +4049,8 @@ int Cdrskin_blank(struct CdrskiN *skin, int flag)
fprintf(stderr,"cdrskin: FATAL : blank=... : media is not erasable\n"); fprintf(stderr,"cdrskin: FATAL : blank=... : media is not erasable\n");
return(0); return(0);
} }
if(profile_number == 0x14 || profile_number == 0x13)
skin->blank_fast= 0; /* only with deformat_sequential_quickest */
} else { } else {
unsupported_format_type:; unsupported_format_type:;
@ -4082,10 +4084,6 @@ unsupported_format_type:;
#endif #endif
} else { } else {
/* >>> */;
/* <<< */
fprintf(stderr,"cdrskin: SORRY : Format type %d not implemented yet.\n", fprintf(stderr,"cdrskin: SORRY : Format type %d not implemented yet.\n",
do_format); do_format);
ret= 0; goto ex; ret= 0; goto ex;
@ -5261,6 +5259,10 @@ set_blank:;
skin->do_blank= 1; skin->do_blank= 1;
skin->blank_format_type= 2; skin->blank_format_type= 2;
skin->blank_fast= 0; skin->blank_fast= 0;
} else if(strcmp(cpt,"deformat_sequential_quickest")==0) {
skin->do_blank= 1;
skin->blank_format_type= 2;
skin->blank_fast= 1;
} else if(strcmp(cpt,"help")==0) { } else if(strcmp(cpt,"help")==0) {
/* is handled in Cdrpreskin_setup() */; /* is handled in Cdrpreskin_setup() */;
continue; continue;

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2007.02.06.174320" #define Cdrskin_timestamP "2007.02.06.185534"

View File

@ -248,10 +248,6 @@ void burn_disc_erase(struct burn_drive *drive, int fast)
return; return;
} }
/* ts A70131 : i get awful results with fast blanking DVD-RW */
if (drive->current_profile == 0x13 || drive->current_profile == 0x14)
fast = 0;
o.drive = drive; o.drive = drive;
o.fast = fast; o.fast = fast;
add_worker(drive, (WorkerFunc) erase_worker_func, &o); add_worker(drive, (WorkerFunc) erase_worker_func, &o);