git-svn-id: svn://db.shs.com.ru/libs@114 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -80,6 +80,7 @@ CDSection CDParser::parse(PIIODevice * d, int cdsection_type) {
|
||||
CDType::cdT et = (CDType::cdT)cdsection_type;
|
||||
if (!d) return CDSection();
|
||||
if (!d->canRead()) return CDSection();
|
||||
//piCout << "[CDSection] parse start";
|
||||
CDSection cs;
|
||||
CDType ck;
|
||||
PIMap<PIString, CDSection> sections;
|
||||
@@ -171,10 +172,12 @@ CDSection CDParser::parse(PIIODevice * d, int cdsection_type) {
|
||||
// enum_values << cevalues;
|
||||
cind += 4;
|
||||
}
|
||||
// piCout << "[CDSection] parse end";
|
||||
switch (et) {
|
||||
case CDType::cdK : return sections.value("KDescription");
|
||||
case CDType::cdX : return sections.value("XDescription");
|
||||
case CDType::cdC : return sections.value("CDescription");
|
||||
default: return CDSection();
|
||||
}
|
||||
return CDSection();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user