Skip to content

Commit

Permalink
Reorder external subtitle loading priority
Browse files Browse the repository at this point in the history
Resolves occasional crash loading VOBSUB .sub files
  • Loading branch information
Cyberbeing committed Dec 7, 2014
1 parent d5310a0 commit b1d4135
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/filters/transform/vsfilter/DirectVobSub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ CDirectVobSub::CDirectVobSub( const Option *options, CCritSec * pLock )

//fix me: CStringw = CString
m_xy_str_opt[STRING_LOAD_EXT_LIST] =
theApp.GetProfileString(ResStr(IDS_R_GENERAL), ResStr(IDS_RG_LOAD_EXT_LIST), _T("ass;ssa;srt;sub;idx;sup;txt;usf;xss;ssf;smi;psb;rt"));
theApp.GetProfileString(ResStr(IDS_R_GENERAL), ResStr(IDS_RG_LOAD_EXT_LIST), _T("ass;ssa;srt;idx;sup;txt;usf;xss;ssf;smi;psb;rt;sub"));

CString str_pgs_yuv_setting = theApp.GetProfileString(ResStr(IDS_R_GENERAL), ResStr(IDS_RG_PGS_COLOR_TYPE), _T("GUESS.GUESS"));
if (str_pgs_yuv_setting.Left(2).CompareNoCase(_T("TV"))==0)
Expand Down Expand Up @@ -1577,7 +1577,7 @@ CDVS4XySubFilter::CDVS4XySubFilter( const Option *options, CCritSec * pLock )

//fix me: CStringw = CString
m_xy_str_opt[STRING_LOAD_EXT_LIST] =
theApp.GetProfileString(ResStr(IDS_R_GENERAL), ResStr(IDS_RG_LOAD_EXT_LIST), _T("ass;ssa;srt;sub;idx;sup;txt;usf;xss;ssf;smi;psb;rt"));
theApp.GetProfileString(ResStr(IDS_R_GENERAL), ResStr(IDS_RG_LOAD_EXT_LIST), _T("ass;ssa;srt;idx;sup;txt;usf;xss;ssf;smi;psb;rt;sub"));

CString str_pgs_yuv_setting = theApp.GetProfileString(ResStr(IDS_R_GENERAL), ResStr(IDS_RG_PGS_COLOR_TYPE), _T("GUESS.GUESS"));
if (str_pgs_yuv_setting.Left(2).CompareNoCase(_T("TV"))==0)
Expand Down
2 changes: 1 addition & 1 deletion src/filters/transform/vsfilter/auto_load_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ XySubFilterAutoLoader::XySubFilterAutoLoader( LPUNKNOWN punk, HRESULT* phr
m_load_web = !!theApp.GetProfileInt( ResStr(IDS_R_GENERAL), ResStr(IDS_RG_WEBLOAD ), 0);
m_load_embedded = !!theApp.GetProfileInt( ResStr(IDS_R_GENERAL), ResStr(IDS_RG_EMBEDDEDLOAD ), 1);
m_load_exts = theApp.GetProfileString(ResStr(IDS_R_GENERAL), ResStr(IDS_RG_LOAD_EXT_LIST),
_T("ass;ssa;srt;sub;idx;sup;txt;usf;xss;ssf;smi;psb;rt"));
_T("ass;ssa;srt;idx;sup;txt;usf;xss;ssf;smi;psb;rt;sub"));

m_loaded = false;

Expand Down

0 comments on commit b1d4135

Please sign in to comment.