Fix some stuff
This commit is contained in:
parent
49b82794ff
commit
531c69a9d3
@ -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();
|
||||
|
@ -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)
|
||||
{
|
||||
while (burn_drive_get_status(drive, NULL) == 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, &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
|
||||
|
Loading…
Reference in New Issue
Block a user