[Gridflow-cvs] [svn] commit: r6655 - /trunk/src/formats.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Feb 21 00:09:05 EST 2011


Author: matju
Date: Mon Feb 21 00:09:04 2011
New Revision: 6655

Log:
change suffix priority in case of conflict (now oldest first). this is necessary because of quicktimehw support on OSX.

Modified:
    trunk/src/formats.cxx

Modified: trunk/src/formats.cxx
==============================================================================
--- trunk/src/formats.cxx (original)
+++ trunk/src/formats.cxx Mon Feb 21 00:09:04 2011
@@ -62,7 +62,10 @@
 	char *suff2 = strdup(suffixes);
 	char *suff3 = suff2+strlen(suff2);
 	for (char *s=suff2; s<suff3; s++) if (*s==' ' || *s==',') *s=0;
-	for (char *s=suff2; s<suff3; s+=strlen(s)+1) {string ss = s; suffix_table[ss]=name2;}
+	for (char *s=suff2; s<suff3; s+=strlen(s)+1) {
+		string ss = s;
+		if (suffix_table.find(ss)==suffix_table.end()) suffix_table[ss]=name2;
+	}
 }
 
 \class SuffixLookup {



More information about the Gridflow-cvs mailing list