From acf66593fcf3107d1257e4be0924be00c19ab9e7 Mon Sep 17 00:00:00 2001 From: clsid2 <4704996+clsid2@users.noreply.github.com> Date: Wed, 10 Aug 2022 13:13:14 +0200 Subject: [PATCH] Skip loading of embedded system fonts --- demuxer/Demuxers/LAVFDemuxer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/demuxer/Demuxers/LAVFDemuxer.cpp b/demuxer/Demuxers/LAVFDemuxer.cpp index c68002aaf..c5710ba91 100644 --- a/demuxer/Demuxers/LAVFDemuxer.cpp +++ b/demuxer/Demuxers/LAVFDemuxer.cpp @@ -836,6 +836,11 @@ STDMETHODIMP CLAVFDemuxer::InitAVFormat(LPCOLESTR pszFileName, BOOL bForce) if (st->codecpar->codec_id == AV_CODEC_ID_TTF || st->codecpar->codec_id == AV_CODEC_ID_OTF) { + // skip loading system fonts, this can mess up player gui + if (_strnicmp(attachFilename->value, "segoe", 5) == 0) { + continue; + } + if (!m_pFontInstaller) { m_pFontInstaller = new CFontInstaller();