Use the speed and drive chosen when burning, and add a speed convert function.
This commit is contained in:
@@ -262,3 +262,24 @@ ecdb_dnd_entry_dnd_set(Evas_Object *o, Ecore_X_Selection_Data_Files *files)
|
||||
ecdb_entry_text_set(o, uri->path);
|
||||
efreet_uri_free(uri);
|
||||
}
|
||||
|
||||
int
|
||||
ecdb_speed_convert(Ecdb_Drive_Info *drive, int sel)
|
||||
{
|
||||
int count, num_speeds, i;
|
||||
|
||||
count = 1;
|
||||
sel++;
|
||||
num_speeds = drive->write_speeds[0];
|
||||
for (i = 0; i < num_speeds; i++)
|
||||
{
|
||||
if (drive->write_speeds[i] <= 0)
|
||||
continue;
|
||||
if (count == sel)
|
||||
return drive->write_speeds[count];
|
||||
count++;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user