Skip to content

Commit

Permalink
Disable seek preview for avisynth input
Browse files Browse the repository at this point in the history
  • Loading branch information
clsid2 committed Jun 17, 2024
1 parent 88106f1 commit 6582461
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/mpc-hc/MainFrm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12872,9 +12872,14 @@ void CMainFrame::OpenCreateGraphObject(OpenMediaData* pOMD)
if (m_bUseSeekPreview) {
if (OpenFileData* pFileData = dynamic_cast<OpenFileData*>(pOMD)) {
CString fn = pFileData->fns.GetHead();
if (!fn.IsEmpty() && ((fn.Find(L"://") >= 0) || IsAudioFilename(fn) || PathIsOnOpticalDisc(fn))) {
// disable seek preview for: streaming data, audio files, files on optical disc
if (fn.IsEmpty()) {
m_bUseSeekPreview = false;
} else {
CString ext = CPath(fn).GetExtension().MakeLower();
if (((fn.Find(L"://") >= 0) || IsAudioFileExt(ext) || ext == L".avs" || PathIsOnOpticalDisc(fn))) {
// disable seek preview for: streaming data, audio files, files on optical disc
m_bUseSeekPreview = false;
}
}
}
}
Expand Down

0 comments on commit 6582461

Please sign in to comment.