ISubPicAllocatorPresenterImpl::ISubPicAllocatorPresenterImpl(HWND hWnd, HRESULT& hr) : CUnknown(NAME("ISubPicAllocatorPresenterImpl"), NULL) , m_hWnd(hWnd) , m_NativeVideoSize(0, 0), m_AspectRatio(0, 0) , m_VideoRect(0, 0, 0, 0), m_WindowRect(0, 0, 0, 0) , m_fps(25.0) , m_lSubtitleDelay(0), m_lSubtitleDelay2(0) , m_pSubPicQueue(NULL) , m_pSubPicQueue2(NULL) { if(!IsWindow(m_hWnd)) {hr = E_INVALIDARG; return;} GetWindowRect(m_hWnd, &m_WindowRect); SetVideoAngle(Vector(), false); hr = S_OK; }
CSubPicAllocatorPresenterImpl::CSubPicAllocatorPresenterImpl(HWND hWnd, HRESULT& hr, CString *_pError) : CUnknown(NAME("CSubPicAllocatorPresenterImpl"), NULL) , m_hWnd(hWnd) , m_NativeVideoSize(0, 0), m_AspectRatio(0, 0) , m_VideoRect(0, 0, 0, 0), m_WindowRect(0, 0, 0, 0) , m_fps(25.0) , m_rtSubtitleDelay(0) , m_bDeviceResetRequested(false) , m_bPendingResetDevice(false) { if(!IsWindow(m_hWnd)) { hr = E_INVALIDARG; if (_pError) { *_pError += "Invalid window handle in ISubPicAllocatorPresenterImpl\n"; } return; } GetWindowRect(m_hWnd, &m_WindowRect); SetVideoAngle(Vector(), false); hr = S_OK; }