|
@@ -2306,8 +2306,8 @@ ErrorCodeEnum CLocalMediaPlayEntity::StartMediaPlayerNotice(int nCfgInx, int nWn
|
|
|
m_mediaParam.nCfgInx = nCfgInx;
|
|
|
m_mediaParam.nWndX = nWndX;
|
|
|
m_mediaParam.nWndY = nWndY;
|
|
|
- m_mediaParam.nWndWidth = nWndWidth;
|
|
|
- m_mediaParam.nWndHeight = nWndHeight;
|
|
|
+ m_mediaParam.nWndWidth = nWndWidth%2 ? nWndWidth+1 : nWndWidth;
|
|
|
+ m_mediaParam.nWndHeight = nWndHeight%2 ? nWndHeight+1 : nWndHeight;
|
|
|
|
|
|
CSimpleStringA strPath;
|
|
|
ErrorCodeEnum Error = GetFunction()->GetPath("ADData", strPath);
|
|
@@ -2403,8 +2403,8 @@ ErrorCodeEnum CLocalMediaPlayEntity::StartFFPlayerNotice(int nCfgInx, int nWndX,
|
|
|
m_mediaParam.nCfgInx = nCfgInx;
|
|
|
m_mediaParam.nWndX = nWndX;
|
|
|
m_mediaParam.nWndY = nWndY;
|
|
|
- m_mediaParam.nWndWidth = nWndWidth;
|
|
|
- m_mediaParam.nWndHeight = nWndHeight;
|
|
|
+ m_mediaParam.nWndWidth = nWndWidth % 2 ? nWndWidth + 1 : nWndWidth;
|
|
|
+ m_mediaParam.nWndHeight = nWndHeight % 2 ? nWndHeight + 1 : nWndHeight;
|
|
|
|
|
|
CSimpleStringA strPath;
|
|
|
Error = GetFunction()->GetPath("ADData", strPath);
|