Fix some stuff

This commit is contained in:
Jaime Thomas 2008-11-17 22:17:24 +00:00
parent 49b82794ff
commit 531c69a9d3
2 changed files with 12 additions and 19 deletions

View File

@ -135,6 +135,7 @@ main(int argc, char **argv)
SHUTDOWN: SHUTDOWN:
burn_finish(); burn_finish();
iso_finish(); iso_finish();
ewl_shutdown();
ecore_file_shutdown(); ecore_file_shutdown();
ecore_string_shutdown(); ecore_string_shutdown();
ecore_evas_shutdown(); ecore_evas_shutdown();

View File

@ -159,7 +159,6 @@ ecdb_drive_progress_update(void *data)
const Ecdb_Project *proj; const Ecdb_Project *proj;
BurnProgress p; BurnProgress p;
struct burn_drive *drive; struct burn_drive *drive;
BurnDriveStatus stat;
proj = data; proj = data;
@ -173,27 +172,20 @@ ecdb_drive_progress_update(void *data)
drive = proj->drive->tangible[0].drive; drive = proj->drive->tangible[0].drive;
printf("Progress update active\n"); printf("Progress update active\n");
while (TRUE) while (burn_drive_get_status(drive, NULL) == BURN_DRIVE_SPAWNING)
{
stat = burn_drive_get_status(drive, &p);
if (stat == BURN_DRIVE_SPAWNING)
{
usleep(100000); usleep(100000);
continue;
}
else if (stat == BURN_DRIVE_IDLE)
{
ecore_pipe_write(proj->pipe, "AC",
sizeof("AC"));
ecore_pipe_del(proj->pipe);
/* Call the finished event handler here */
pthread_exit(NULL);
break;
}
while (burn_drive_get_status(drive, &p) != BURN_DRIVE_IDLE)
{
if (p.sectors > 0)
ecore_pipe_write(proj->pipe, &p, sizeof(p)); ecore_pipe_write(proj->pipe, &p, sizeof(p));
usleep(100000); usleep(100000);
} }
ecore_pipe_write(proj->pipe, "AC", sizeof("AC"));
ecore_pipe_del(proj->pipe);
/* Call the finished event handler here */
pthread_exit(NULL);
} }
static void static void