Fix some stuff

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

View File

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

View File

@ -159,7 +159,6 @@ ecdb_drive_progress_update(void *data)
const Ecdb_Project *proj;
BurnProgress p;
struct burn_drive *drive;
BurnDriveStatus stat;
proj = data;
@ -173,27 +172,20 @@ ecdb_drive_progress_update(void *data)
drive = proj->drive->tangible[0].drive;
printf("Progress update active\n");
while (TRUE)
{
stat = burn_drive_get_status(drive, &p);
if (stat == BURN_DRIVE_SPAWNING)
{
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, NULL) == BURN_DRIVE_SPAWNING)
usleep(100000);
ecore_pipe_write(proj->pipe, &p, sizeof(p));
while (burn_drive_get_status(drive, &p) != BURN_DRIVE_IDLE)
{
if (p.sectors > 0)
ecore_pipe_write(proj->pipe, &p, sizeof(p));
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