Fixed bug with -speed.
This commit is contained in:
parent
b2e682fd31
commit
de05ca5c48
@ -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 */;
|
||||
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2007.10.17.224924"
|
||||
#define Xorriso_timestamP "2007.10.17.225039"
|
||||
|
Loading…
Reference in New Issue
Block a user