Skip to content

Commit

Permalink
Выполняем IAMOpenProgress::AbortOperation перед закрытием графа. Это …
Browse files Browse the repository at this point in the history
…устранит зависание плеера с некоторыми проблемными URL.
  • Loading branch information
v0lt committed Aug 4, 2024
1 parent a5789b0 commit af7eb07
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/apps/mplayerc/MainFrm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17651,6 +17651,19 @@ void CMainFrame::CloseMedia(BOOL bNextIsOpened/* = FALSE*/)
m_fOpeningAborted = true;

if (m_pGB) {
if (!m_pAMOP) {
m_pAMOP = m_pGB;
if (!m_pAMOP) {
BeginEnumFilters(m_pGB, pEF, pBF)
if (m_pAMOP = pBF) {
break;
}
EndEnumFilters;
}
}
if (m_pAMOP) {
m_pAMOP->AbortOperation();
}
m_pGB->Abort(); // TODO: lock on graph objects somehow, this is not thread safe
}

Expand Down

0 comments on commit af7eb07

Please sign in to comment.