wxString PropertyTokens;
std::map<int,int>::iterator SLiter;
bool FirstToken = TRUE;
+ bool PropertyMatched = FALSE;
for (std::map<int, int>::iterator intiter = SplitPoints.begin();
intiter != SplitPoints.end(); ++intiter){
CaptureString(&PropertyValue, FALSE);
- if (PropertyName == wxT("ALTID")){
-
- GroupsListAltID.erase(*GroupCount);
- GroupsListAltID.insert(std::make_pair(*GroupCount, PropertyValue));
+ ProcessStringValue(&PropertyName, "ALTID", &GroupsListAltID, &PropertyValue, GroupCount, &PropertyMatched);
+ ProcessStringValue(&PropertyName, "PID", &GroupsListPID, &PropertyValue, GroupCount, &PropertyMatched);
+ ProcessStringValue(&PropertyName, "MEDIATYPE", &GroupsListMediaType, &PropertyValue, GroupCount, &PropertyMatched);
+ ProcessIntegerValue(&PropertyName, "PREF", &GroupsListPref, &PropertyValue, GroupCount, &PropertyMatched);
- } else if (PropertyName == wxT("PID")){
-
- GroupsListPID.erase(*GroupCount);
- GroupsListPID.insert(std::make_pair(*GroupCount, PropertyValue));
+ if (PropertyMatched == TRUE){
- } else if (PropertyName == wxT("PREF")){
-
- ProcessIntegerValue(&GroupsListPref, &PropertyValue, GroupCount);
+ PropertyMatched = FALSE;
+ continue;
- } else if (PropertyName == wxT("MEDIATYPE")){
-
- GroupsListMediaType.erase(*GroupCount);
- GroupsListMediaType.insert(std::make_pair(*GroupCount, PropertyValue));
+ }
- } else if (!PropertyName.IsEmpty() && !PropertyValue.IsEmpty()){
+ if (!PropertyName.IsEmpty() && !PropertyValue.IsEmpty()){
if (FirstToken == TRUE){