Update of /cvsroot/audacity/audacity-src/src/export
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv14899/export

Modified Files:
        ExportFFmpegDialogs.cpp 
Log Message:
* XMLFileWriter now throws an exception if writing the .xml file fails
* Add error checking (exception handling) to most places where XML files are 
written
* If the new .aup file was successfully saved, delete the old .aup.bak file in 
order not to confuse users
* Never open .aup.bak files, show an informational message instead

Index: ExportFFmpegDialogs.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/export/ExportFFmpegDialogs.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- ExportFFmpegDialogs.cpp     25 Apr 2009 07:26:26 -0000      1.19
+++ ExportFFmpegDialogs.cpp     1 May 2009 18:26:33 -0000       1.20
@@ -419,6 +419,7 @@
 FFmpegPresets::~FFmpegPresets()
 {
    XMLFileWriter writer;
+   // FIXME: Catch XMLFileWriterException
    wxFileName xmlFileName(FileNames::DataDir(), wxT("ffmpeg_presets.xml"));
    writer.Open(xmlFileName.GetFullPath(),wxT("wb"));
    WriteXMLHeader(writer);
@@ -435,6 +436,7 @@
 void FFmpegPresets::ExportPresets(wxString &filename)
 {
    XMLFileWriter writer;
+   // FIXME: Catch XMLFileWriterException
    writer.Open(filename,wxT("wb"));
    WriteXMLHeader(writer);
    WriteXML(writer);


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to