103 |
} |
} |
104 |
Lbuffer[Llu]=0; |
Lbuffer[Llu]=0; |
105 |
_DEB("===>%s", Lbuffer); |
_DEB("===>%s", Lbuffer); |
106 |
|
if ((f=strstr(Lbuffer, CDRDAO_LENGTH))) { |
107 |
|
/* longueur total du cd */ |
108 |
|
f=f+strlen(CDRDAO_LENGTH); |
109 |
|
*Llength = get_2time(f); |
110 |
|
if (*Llength < 0) *Llength = 0; |
111 |
|
} |
112 |
|
|
113 |
if ((f=strstr(Lbuffer, CDRDAO_WROTE))) { |
if ((f=strstr(Lbuffer, CDRDAO_WROTE))) { |
114 |
/* copie en cours */ |
/* copie en cours */ |
183 |
g_snprintf(Lsbuf, sizeof(Lsbuf)-1, _("Reading track %s at %s..."), f, Latspeed); |
g_snprintf(Lsbuf, sizeof(Lsbuf)-1, _("Reading track %s at %s..."), f, Latspeed); |
184 |
gtk_label_set_text(Ltitle, Lsbuf); |
gtk_label_set_text(Ltitle, Lsbuf); |
185 |
} |
} |
186 |
|
} else if ((f=strstr(Lbuffer, CDRDAO_ATSPEED))) { |
187 |
|
/* vitesse reel operation */ |
188 |
|
f=f+strlen(CDRDAO_ATSPEED); |
189 |
|
e=f; |
190 |
|
for (e=f; isdigit(*e); e++) ; |
191 |
|
*e=0; |
192 |
|
if (*f) { |
193 |
|
g_snprintf(Latspeed, _BUF_SIZE-1, "%sx", f); |
194 |
|
} |
195 |
} else if ((strchr(Lbuffer, 13))) { |
} else if ((strchr(Lbuffer, 13))) { |
196 |
/* operation lecture d'une piste en cours */ |
/* operation lecture d'une piste en cours */ |
197 |
glong Lcur = get_2time(Lbuffer); |
glong Lcur = get_2time(Lbuffer); |
204 |
Ltava = (1.0/ (*Ltodo)) * ((*Ldone)-1+Lpct); |
Ltava = (1.0/ (*Ltodo)) * ((*Ldone)-1+Lpct); |
205 |
maj_progress(Lprogressbar, Ltava); |
maj_progress(Lprogressbar, Ltava); |
206 |
} |
} |
|
} else if ((f=strstr(Lbuffer, CDRDAO_LENGTH))) { |
|
|
/* longueur total du cd */ |
|
|
f=f+strlen(CDRDAO_LENGTH); |
|
|
*Llength = get_2time(f); |
|
|
if (*Llength < 0) *Llength = 0; |
|
|
} else if ((f=strstr(Lbuffer, CDRDAO_ATSPEED))) { |
|
|
/* vitesse reel operation */ |
|
|
f=f+strlen(CDRDAO_ATSPEED); |
|
|
e=f; |
|
|
for (e=f; isdigit(*e); e++) ; |
|
|
*e=0; |
|
|
if (*f) { |
|
|
g_snprintf(Latspeed, _BUF_SIZE-1, "%sx", f); |
|
|
} |
|
207 |
} else if ((f=strstr(Lbuffer, CDRDAO_ANALYZING))) { |
} else if ((f=strstr(Lbuffer, CDRDAO_ANALYZING))) { |
208 |
/* mise a jour du titre analyse de la piste en cours */ |
/* mise a jour du titre analyse de la piste en cours */ |
209 |
f=f+strlen(CDRDAO_ANALYZING); |
f=f+strlen(CDRDAO_ANALYZING); |
355 |
* si il faut realiser d'autre gravure sur d'autres CD-R */ |
* si il faut realiser d'autre gravure sur d'autres CD-R */ |
356 |
Leject = ((Lcurcd > 1 && (Lwanteject || Lcurcd<Lnbrgravure)) || (Lcurcd == 1 && !Ldosimul && Lwanteject)); |
Leject = ((Lcurcd > 1 && (Lwanteject || Lcurcd<Lnbrgravure)) || (Lcurcd == 1 && !Ldosimul && Lwanteject)); |
357 |
|
|
358 |
/* try to umount device before device access */ |
/* try to umount devices before access */ |
359 |
|
matos_umount_device(Lsource, NULL); |
360 |
matos_umount_device(Lgraveur, NULL); |
matos_umount_device(Lgraveur, NULL); |
361 |
|
|
362 |
/* if (Lonfly || Ldosimul || Lcurcd == 1) { |
/* if (Lonfly || Ldosimul || Lcurcd == 1) { |