With -atip on DVD report no RAW/RAW96R among "Supported modes"

This commit is contained in:
Thomas Schmitt 2006-12-20 19:54:46 +00:00
parent 19fe021271
commit bb0fb3c36d
2 changed files with 9 additions and 7 deletions

View File

@ -3356,7 +3356,7 @@ ex:;
bit0= do not print message about pseudo-checkdrive bit0= do not print message about pseudo-checkdrive
@return <=0 error, 1 success @return <=0 error, 1 success
*/ */
int Cdrskin_checkdrive(struct CdrskiN *skin, int flag) int Cdrskin_checkdrive(struct CdrskiN *skin, char *profile_name, int flag)
{ {
struct burn_drive_info *drive_info; struct burn_drive_info *drive_info;
int ret; int ret;
@ -3392,7 +3392,8 @@ int Cdrskin_checkdrive(struct CdrskiN *skin, int flag)
printf(" TAO"); printf(" TAO");
if(drive_info->sao_block_types & BURN_BLOCK_SAO) if(drive_info->sao_block_types & BURN_BLOCK_SAO)
printf(" SAO"); printf(" SAO");
if(drive_info->raw_block_types & BURN_BLOCK_RAW96R) if((drive_info->raw_block_types & BURN_BLOCK_RAW96R) &&
strstr(profile_name,"DVD")!=profile_name)
printf(" RAW/RAW96R"); printf(" RAW/RAW96R");
printf("\n"); printf("\n");
@ -3601,9 +3602,6 @@ int Cdrskin_atip(struct CdrskiN *skin, int flag)
char profile_name[80]; char profile_name[80];
printf("cdrskin: pseudo-atip on drive %d\n",skin->driveno); printf("cdrskin: pseudo-atip on drive %d\n",skin->driveno);
ret= Cdrskin_checkdrive(skin,1);
if(ret<=0)
return(ret);
ret= Cdrskin_grab_drive(skin,0); ret= Cdrskin_grab_drive(skin,0);
if(ret<=0) if(ret<=0)
return(ret); return(ret);
@ -3685,6 +3683,10 @@ int Cdrskin_atip(struct CdrskiN *skin, int flag)
} }
#endif /* Cdrskin_libburn_has_get_profilE */ #endif /* Cdrskin_libburn_has_get_profilE */
ret= Cdrskin_checkdrive(skin,profile_name,1);
if(ret<=0)
return(ret);
#ifdef Cdrskin_libburn_has_read_atiP #ifdef Cdrskin_libburn_has_read_atiP
if(burn_disc_get_status(drive) != BURN_DISC_UNSUITABLE) { if(burn_disc_get_status(drive) != BURN_DISC_UNSUITABLE) {
ret= burn_disc_read_atip(drive); ret= burn_disc_read_atip(drive);
@ -5551,7 +5553,7 @@ int Cdrskin_run(struct CdrskiN *skin, int *exit_value, int flag)
{*exit_value= 5*(ret<=0); goto ex;} {*exit_value= 5*(ret<=0); goto ex;}
} }
if(skin->do_checkdrive) { if(skin->do_checkdrive) {
ret= Cdrskin_checkdrive(skin,0); ret= Cdrskin_checkdrive(skin,"",0);
{*exit_value= 6*(ret<=0); goto ex;} {*exit_value= 6*(ret<=0); goto ex;}
} }
if(skin->do_msinfo) { if(skin->do_msinfo) {

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2006.12.20.180214" #define Cdrskin_timestamP "2006.12.20.195421"