Update of /cvsroot/audacity/audacity-src/src/ondemand
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv4140/ondemand
Modified Files:
ODTask.cpp
Log Message:
Support for save for OD. mutex issues fixes. tentative exportffmpeg mac
compile fix.
Index: ODTask.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/ondemand/ODTask.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- ODTask.cpp 6 Aug 2008 16:48:16 -0000 1.11
+++ ODTask.cpp 10 Aug 2008 02:31:10 -0000 1.12
@@ -109,6 +109,21 @@
if(!IsComplete() && !mTerminate)
{
ODManager::Instance()->AddTask(this);
+
+ //we did a bit of progress - we should allow a resave.
+ AudacityProject::AllProjectsDeleteLock();
+ for(unsigned i=0; i<gAudacityProjects.GetCount(); i++)
+ {
+ if(IsTaskAssociatedWithProject(gAudacityProjects[i]))
+ {
+ //mark the changes so that the project can be resaved.
+ gAudacityProjects[i]->GetUndoManager()->SetODChangesFlag();
+ break;
+ }
+ }
+ AudacityProject::AllProjectsDeleteUnlock();
+
+
// printf("%s %i is %f done\n",
GetTaskName(),GetTaskNumber(),PercentComplete());
}
else
@@ -122,15 +137,11 @@
{
//this assumes tasks are only associated with one project.
gAudacityProjects[i]->AddPendingEvent( event );
+ //mark the changes so that the project can be resaved.
+ gAudacityProjects[i]->GetUndoManager()->SetODChangesFlag();
break;
}
}
- /*
- AudacityProject* proj = GetActiveProject();
- if(IsTaskAssociatedWithProject(proj))
- proj->AddPendingEvent( event );
- */
-
AudacityProject::AllProjectsDeleteUnlock();
// printf("%s %i complete\n", GetTaskName(),GetTaskNumber());
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs