diff options
author | Luca Carlon <carlon.luca@gmail.com> | 2018-07-21 19:04:38 +0200 |
---|---|---|
committer | Luca Carlon <carlon.luca@gmail.com> | 2018-07-28 10:40:32 +0000 |
commit | a86ac5ba0a5ac06f32da67a12b36eb07db817cca (patch) | |
tree | 4800d614306ce8f3b4acfffeb9c036ae504cdd88 /src/plugins/directshow/player/directshowplayerservice.cpp | |
parent | 899bc7654a1d56b3f12320d3ae04c8024282c034 (diff) |
Introduce a new environment variable to disable EVR in DirectShow
A new environment variable QT_DIRECTSHOW_NO_EVR is introduced to
disable EVR, which is needed in some cases (see QTBUG-53019).
Task-number: QTBUG-53019
Change-Id: I8e39ad36d37f5e7c2da0d1fdc62dc95dda715ec0
Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io>
Diffstat (limited to 'src/plugins/directshow/player/directshowplayerservice.cpp')
-rw-r--r-- | src/plugins/directshow/player/directshowplayerservice.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/plugins/directshow/player/directshowplayerservice.cpp b/src/plugins/directshow/player/directshowplayerservice.cpp index 0cad3cc2e..63635b059 100644 --- a/src/plugins/directshow/player/directshowplayerservice.cpp +++ b/src/plugins/directshow/player/directshowplayerservice.cpp @@ -219,11 +219,13 @@ QMediaControl *DirectShowPlayerService::requestControl(const char *name) IBaseFilter *filter; #if QT_CONFIG(evr) - DirectShowEvrVideoWindowControl *evrControl = new DirectShowEvrVideoWindowControl; - if ((filter = evrControl->filter())) - m_videoWindowControl = evrControl; - else - delete evrControl; + if (!qgetenv("QT_DIRECTSHOW_NO_EVR").toInt()) { + DirectShowEvrVideoWindowControl *evrControl = new DirectShowEvrVideoWindowControl; + if ((filter = evrControl->filter())) + m_videoWindowControl = evrControl; + else + delete evrControl; + } #endif // Fall back to the VMR9 if the EVR is not available if (!m_videoWindowControl) { |