diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2011-07-26 04:51:03 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2011-07-26 04:51:03 +0400 |
commit | af57ef1bdda8f50f31d04a65c02a8e3052de625a (patch) | |
tree | 82cf30638daaf93202c7741fe1f4fcb78125a8b5 /src/Subtitles | |
parent | f2d464296c1acbb4c5f1212b73fa965a92eadfd6 (diff) |
Change : More friendly Subtitles name.
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3479 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/Subtitles')
-rw-r--r-- | src/Subtitles/SubtitleInputPin.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Subtitles/SubtitleInputPin.cpp b/src/Subtitles/SubtitleInputPin.cpp index a6fced2c7..70088a947 100644 --- a/src/Subtitles/SubtitleInputPin.cpp +++ b/src/Subtitles/SubtitleInputPin.cpp @@ -92,14 +92,18 @@ HRESULT CSubtitleInputPin::CompleteConnect(IPin* pReceivePin) name = ISO6392ToLanguage(psi->IsoLang);
lcid = ISO6392ToLcid(psi->IsoLang);
+
+ if(wcslen(psi->TrackName) > 0) {
+ name += (!name.IsEmpty() ? _T(", ") : _T("")) + CString(psi->TrackName);
+ }
if(name.IsEmpty()) {
name = _T("Unknown");
}
- if(wcslen(psi->TrackName) > 0) {
- name += _T(", ") + CString(psi->TrackName);
- }
}
+ name.Replace(_T(""), _T(""));
+ name.Replace(_T(""), _T(""));
+
if(m_mt.subtype == MEDIASUBTYPE_UTF8
/*|| m_mt.subtype == MEDIASUBTYPE_USF*/
|| m_mt.subtype == MEDIASUBTYPE_SSA
|