diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2010-03-28 18:47:43 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2010-03-28 18:47:43 +0400 |
commit | aed75bbc2096354e525cd31998411cfcb56c2e5d (patch) | |
tree | 7920920d0a9cb74a2bb02bbc4c5a5ff9aacb9c7c /src/apps/mplayerc | |
parent | 214148d4a3ef0c145e141b8b9ca84ff9006672c3 (diff) |
Fixed : EDL loading
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1772 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc')
-rw-r--r-- | src/apps/mplayerc/EditListEditor.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/apps/mplayerc/EditListEditor.cpp b/src/apps/mplayerc/EditListEditor.cpp index 8af6de2b3..3385e40d1 100644 --- a/src/apps/mplayerc/EditListEditor.cpp +++ b/src/apps/mplayerc/EditListEditor.cpp @@ -215,23 +215,23 @@ void CEditListEditor::OpenFile(LPCTSTR lpFileName) }
EditListFile.Close();
+ }
+ else
+ m_bFileOpen = false;
- if (m_NameList.GetCount() == 0)
+ if (m_NameList.GetCount() == 0)
+ {
+ CStdioFile NameFile;
+ CString str;
+ if (NameFile.Open (_T("EditListNames.txt"), CFile::modeRead))
{
- CStdioFile NameFile;
- CString str;
- if (NameFile.Open (_T("EditListNames.txt"), CFile::modeRead))
+ while(NameFile.ReadString(str))
{
- while(NameFile.ReadString(str))
- {
- m_NameList.Add(str);
- }
- NameFile.Close();
+ m_NameList.Add(str);
}
+ NameFile.Close();
}
}
- else
- m_bFileOpen = false;
}
void CEditListEditor::SetIn (REFERENCE_TIME rtIn)
|