| 339 | } |
| 340 | |
| 341 | HRESULT |
| 342 | CPullPin::QueueSample(__inout REFERENCE_TIME &tCurrent, REFERENCE_TIME tAlignStop, BOOL bDiscontinuity) |
| 343 | { |
| 344 | IMediaSample *pSample; |
| 345 | |
| 346 | HRESULT hr = m_pAlloc->GetBuffer(&pSample, NULL, NULL, 0); |
| 347 | if (FAILED(hr)) |
| 348 | { |
| 349 | return hr; |
| 350 | } |
| 351 | |
| 352 | LONGLONG tStopThis = tCurrent + (pSample->GetSize() * UNITS); |
| 353 | if (tStopThis > tAlignStop) |
| 354 | { |
| 355 | tStopThis = tAlignStop; |
| 356 | } |
| 357 | pSample->SetTime(&tCurrent, &tStopThis); |
| 358 | tCurrent = tStopThis; |
| 359 | |
| 360 | pSample->SetDiscontinuity(bDiscontinuity); |
| 361 | |
| 362 | hr = m_pReader->Request(pSample, 0); |
| 363 | if (FAILED(hr)) |
| 364 | { |
| 365 | pSample->Release(); |
| 366 | |
| 367 | CleanupCancelled(); |
| 368 | OnError(hr); |
| 369 | } |
| 370 | return hr; |
| 371 | } |
| 372 | |
| 373 | HRESULT |
| 374 | CPullPin::CollectAndDeliver(REFERENCE_TIME tStart, REFERENCE_TIME tStop) |
nothing calls this directly
no test coverage detected