Update of /cvsroot/audacity/audacity-src/src/import
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv18906/src/import
Modified Files:
Import.cpp
Log Message:
Code comments and cosmetic fixes.
Index: Import.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/import/Import.cpp,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- Import.cpp 13 Jul 2008 22:53:20 -0000 1.46
+++ Import.cpp 9 Aug 2008 03:04:47 -0000 1.47
@@ -139,11 +139,14 @@
importPluginNode = tryFirstNode;
}
ImportPlugin *plugin = importPluginNode->GetData();
+ // Do not use this plugin if it doesn't supports the file's extension
if (plugin->SupportsExtension(extension))
{
+ // Try to open the file with this plugin (probe it)
mInFile = plugin->Open(fName);
if ( (mInFile != NULL) && (mInFile->GetStreamCount() > 0) )
{
+ // File has more than one stream - display stream selector
if (mInFile->GetStreamCount() > 1)
{
ImportStreamDialog ImportDlg(mInFile, NULL, -1, _("Select
stream(s) to import"));
@@ -153,6 +156,7 @@
return 0;
}
}
+ // One stream - import it by default
else
mInFile->SetStreamUsage(0,TRUE);
-------------------------------------------------------------------------
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