Don't segfault... not an actual fix though.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user