Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2014-01-14 21:15:20 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2014-01-14 21:15:20 +0400
commit1803c0098141fb9189ba556f13d0a18be291f87f (patch)
tree51049355414dba2b6dd0c5f6c8725bb07210cc07 /common
parent6a874f3a15fba6f7642b9506d7fa941677c15a6c (diff)
Fix check for multiple file segments.
Diffstat (limited to 'common')
-rw-r--r--common/DSUtilLite/CueSheet.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/DSUtilLite/CueSheet.cpp b/common/DSUtilLite/CueSheet.cpp
index 90d01461..efcc69d4 100644
--- a/common/DSUtilLite/CueSheet.cpp
+++ b/common/DSUtilLite/CueSheet.cpp
@@ -120,6 +120,10 @@ HRESULT CCueSheet::Parse(string cueSheet)
break;
case ParserState::FILE:
case ParserState::TRACK:
+ if (word == "FILE") {
+ DbgLog((LOG_TRACE, 10, L"CCueSheet::Parse(): Multiple FILE segments not supported."));
+ return E_FAIL;
+ }
if (word == "TRACK") {
state = ParserState::TRACK;
trackCount++;
@@ -135,9 +139,6 @@ HRESULT CCueSheet::Parse(string cueSheet)
} else if (word == "PERFORMER") {
m_Tracks.back().Performer = GetCueParam(line);
}
- } else if (word == "FILE") {
- DbgLog((LOG_TRACE, 10, L"CCueSheet::Parse(): Multiple FILE segments not supported."));
- return E_FAIL;
}
break;
}