| 285 | } |
| 286 | |
| 287 | STDMETHODIMP CDecodeManager::PostConnect(IPin *pPin) |
| 288 | { |
| 289 | CAutoLock decoderLock(this); |
| 290 | HRESULT hr = S_OK; |
| 291 | if (m_pDecoder) |
| 292 | { |
| 293 | hr = m_pDecoder->PostConnect(pPin); |
| 294 | if (FAILED(hr)) |
| 295 | { |
| 296 | m_bHWDecoderFailed = TRUE; |
| 297 | CMediaType &mt = m_pLAVVideo->GetInputMediaType(); |
| 298 | hr = CreateDecoder(&mt, m_Codec, &m_SideDataCache); |
| 299 | } |
| 300 | } |
| 301 | return hr; |
| 302 | } |
| 303 | |
| 304 | STDMETHODIMP CDecodeManager::BreakConnect() |
| 305 | { |