CRendererPosPassThru::RegisterMediaTime

Registers the media start and end times with the object.

HRESULT RegisterMediaTime(
  IMediaSample* pMediaSample 
);

HRESULT RegisterMediaTime(
  LONGLONG pStartTime,
  LONGLONG pEndTime 
);

Parameters

  • pMediaSample
    IMediaSample object containing the media times.
  • pStartTime
    Returned starting media time.
  • pEndTime
    Returned ending media time.

Return Values

Returns VFW_E_MEDIA_TIME_NOT_SET if the sample does not have its media times set. Otherwise, returns and HRESULT from the call to IMediaSample::GetTime.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements. See Setting Up the Build Environment for more information.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.