HRESULT OutpinVideo::GetStopPosition(LONGLONG* p) { Filter::Lock lock; HRESULT hr = lock.Seize(m_pFilter); if (FAILED(hr)) return hr; if (!bool(m_pPinConnection)) return VFW_E_NOT_CONNECTED; const Inpin& inpin = m_pFilter->m_inpin; const GraphUtil::IMediaSeekingPtr pSeek(inpin.m_pPinConnection); if (bool(pSeek)) { lock.Release(); return pSeek->GetStopPosition(p); } if (p == 0) return E_POINTER; return E_FAIL; }
HRESULT Outpin::GetStopPosition(LONGLONG* p) { const Inpin& inpin = m_pFilter->m_inpin; const GraphUtil::IMediaSeekingPtr pSeek(inpin.m_pPinConnection); if (bool(pSeek)) return pSeek->GetStopPosition(p); if (p == 0) return E_POINTER; return E_FAIL; }