Don't segfault... not an actual fix though.

This commit is contained in:
Jaime Thomas
2008-11-16 06:48:08 +00:00
parent 8a545080aa
commit 5dbb07c5a2
3 changed files with 12 additions and 5 deletions

View File

@@ -176,7 +176,6 @@ ecdb_drive_progress_update(void *data)
while (TRUE)
{
stat = burn_drive_get_status(drive, &p);
ecore_pipe_write(proj->pipe, &p, sizeof(&p));
if (stat == BURN_DRIVE_SPAWNING)
{
sleep(1);
@@ -184,11 +183,17 @@ ecdb_drive_progress_update(void *data)
}
else if (stat == BURN_DRIVE_IDLE)
{
ecore_pipe_write(proj->pipe, NULL, 0);
ecore_pipe_del(proj->pipe);
/* Call the finished event handler here */
pthread_exit(NULL);
break;
}
// Arg... too tired to figure this out now
//ecore_pipe_write(proj->pipe, &p, sizeof(p));
printf("%d/%d\n", p.sector, p.sectors);
sleep(1);
}
}