Don't segfault... not an actual fix though.
This commit is contained in:
@@ -74,7 +74,6 @@ ecdb_erase_disc(Ecdb_Erase_Project *proj)
|
||||
NULL);
|
||||
burn_disc_erase(ECDB_PROJECT(proj)->drive->
|
||||
tangible[0].drive, proj->quick);
|
||||
|
||||
pthread_create(&progress_update, NULL,
|
||||
ecdb_drive_progress_update, proj);
|
||||
pthread_detach(progress_update);
|
||||
@@ -98,7 +97,12 @@ ecdb_erase_progress_handler(void *data, void *buffer, unsigned int nbyte)
|
||||
char buf[1024];
|
||||
|
||||
// Is this correct?
|
||||
if (p->sector >= p->sectors)
|
||||
// Check this
|
||||
if (sizeof(buffer) == sizeof(BurnProgress))
|
||||
{
|
||||
p = buffer;
|
||||
}
|
||||
else
|
||||
{
|
||||
ecore_event_add(ECDB_DRIVE_ACTION_FINISHED, NULL, NULL, NULL);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user