Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
VSFilter: Remove some old debug code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Underground78 committed Sep 29, 2014
1 parent f67c1e6 commit 9f0a55e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/filters/transform/VSFilter/DirectVobSubFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1445,12 +1445,14 @@ bool CDirectVobSubFilter2::ShouldWeAutoload(IFilterGraph* pGraph)
}
EndEnumFilters;

if ((m_fExternalLoad || m_fWebLoad) && (m_fWebLoad || !(wcsstr(m_videoFileName, L"http://") || wcsstr(m_videoFileName, L"mms://")))) {
bool fTemp = m_fHideSubtitles;
fRet = !m_videoFileName.IsEmpty() && SUCCEEDED(put_FileName((LPWSTR)(LPCWSTR)m_videoFileName))
|| SUCCEEDED(put_FileName(L"c:\\tmp.srt"))
|| fRet;
if (fTemp) {
if (!m_videoFileName.IsEmpty() && (m_fExternalLoad || m_fWebLoad) && (m_fWebLoad || !(wcsstr(m_videoFileName, L"http://") || wcsstr(m_videoFileName, L"mms://")))) {
bool bSubtitlesWereHidden = m_fHideSubtitles;

if (SUCCEEDED(put_FileName((LPWSTR)(LPCWSTR)m_videoFileName))) {
fRet = true;
}

if (bSubtitlesWereHidden) {
m_fHideSubtitles = true;
}
}
Expand Down

0 comments on commit 9f0a55e

Please sign in to comment.