Small theme fixes, and now use the available space as reported by burn_disc_available_space (either the write_opts need to be passed, or libburn is really innacurate)
This commit is contained in:
@@ -33,6 +33,7 @@ _update_capacity(void *data, int type, void *ev_data)
|
||||
src = evas_object_data_get(bdd->capacity, "source");
|
||||
if ((proj->drive) && (proj->drive->capacity > 0))
|
||||
{
|
||||
printf("drive capacity: %lld, src->size: %lld\n", proj->drive->capacity, src->size);
|
||||
msg.val = (float)src->size / (float)proj->drive->capacity;
|
||||
}
|
||||
else
|
||||
|
@@ -49,7 +49,13 @@ ecdb_aquire_drive_info(void)
|
||||
|
||||
drive->profile_name = eina_stringshare_add(speeds->profile_name);
|
||||
drive->profile_loaded = speeds->profile_loaded;
|
||||
drive->capacity = speeds->end_lba * 2048;
|
||||
|
||||
if (burn_drive_grab(drives_current[i].drive, 1))
|
||||
{
|
||||
drive->capacity = burn_disc_available_space(drives_current[i].drive,
|
||||
NULL);
|
||||
burn_drive_release(drives_current[i].drive, 0);
|
||||
}
|
||||
|
||||
while (speeds->next)
|
||||
{
|
||||
|
Reference in New Issue
Block a user