| 1500 | // boundaries NOTE the buffers are not allocated until the Commit call |
| 1501 | |
| 1502 | STDMETHODIMP CImageAllocator::SetProperties(__in ALLOCATOR_PROPERTIES *pRequest, __out ALLOCATOR_PROPERTIES *pActual) |
| 1503 | { |
| 1504 | ALLOCATOR_PROPERTIES Adjusted = *pRequest; |
| 1505 | |
| 1506 | // Check the parameters fit with the current connection |
| 1507 | |
| 1508 | HRESULT hr = CheckSizes(&Adjusted); |
| 1509 | if (FAILED(hr)) |
| 1510 | { |
| 1511 | return hr; |
| 1512 | } |
| 1513 | return CBaseAllocator::SetProperties(&Adjusted, pActual); |
| 1514 | } |
| 1515 | |
| 1516 | // Commit the memory by allocating the agreed number of media samples. For |
| 1517 | // each sample we are committed to creating we have a CImageSample object |
no outgoing calls
no test coverage detected