Fixed bug with -speed.

This commit is contained in:
Thomas Schmitt 2007-10-17 22:50:42 +00:00
parent b2e682fd31
commit de05ca5c48
2 changed files with 9 additions and 7 deletions

View File

@ -4225,7 +4225,7 @@ int Xorriso_option_rollback(struct XorrisO *xorriso, int flag)
/* Option -speed */
int Xorriso_option_speed(struct XorrisO *xorriso, char *speed, int flag)
{
int is_cd= 1;
int is_cd= 1, unit_found= 0;
double num;
char *cpt;
@ -4240,11 +4240,13 @@ int Xorriso_option_speed(struct XorrisO *xorriso, char *speed, int flag)
break;
cpt++;
if(*cpt=='k' || *cpt=='K')
/* is merchand kilobyte, stays merchand kilobyte */;
else if(*cpt=='m' || *cpt=='M')
if(*cpt=='k' || *cpt=='K') {
/* is merchand kilobyte, stays merchand kilobyte */
unit_found= 1;
} else if(*cpt=='m' || *cpt=='M') {
num*= 1000;
else if(*cpt=='x' || *cpt=='X')
unit_found= 1;
} else if(*cpt=='x' || *cpt=='X')
cpt++;
if(*cpt=='c' || *cpt=='C') {
@ -4253,7 +4255,7 @@ cd_speed:;
} else if(*cpt=='d' || *cpt=='D') {
dvd_speed:;
num*= 1385;
} else {
} else if (!unit_found) {
/* >>> try to determine target media */;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2007.10.17.224924"
#define Xorriso_timestamP "2007.10.17.225039"