File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,10 @@ bool COMXVideo::PortSettingsChanged()
217
217
configDisplay.num = m_config.display ;
218
218
configDisplay.layer = m_config.layer ;
219
219
configDisplay.transform = m_transform;
220
+
221
+ if (!(m_config.dst_rect .x2 > m_config.dst_rect .x1 && m_config.dst_rect .y2 > m_config.dst_rect .y1 ))
222
+ configDisplay.alpha |= OMX_DISPLAY_ALPHA_FLAGS_DISCARD_LOWER_LAYERS;
223
+
220
224
omx_err = m_omx_render.SetConfig (OMX_IndexConfigDisplayRegion, &configDisplay);
221
225
if (omx_err != OMX_ErrorNone)
222
226
{
@@ -912,6 +916,9 @@ void COMXVideo::SetAlpha(int alpha)
912
916
configDisplay.set = OMX_DISPLAY_SET_ALPHA;
913
917
configDisplay.alpha = alpha;
914
918
919
+ if (!(m_config.dst_rect .x2 > m_config.dst_rect .x1 && m_config.dst_rect .y2 > m_config.dst_rect .y1 ))
920
+ configDisplay.alpha |= OMX_DISPLAY_ALPHA_FLAGS_DISCARD_LOWER_LAYERS;
921
+
915
922
omx_err = m_omx_render.SetConfig (OMX_IndexConfigDisplayRegion, &configDisplay);
916
923
if (omx_err != OMX_ErrorNone)
917
924
{
You can’t perform that action at this time.
0 commit comments