Share via


CRendererPosPassThru::RegisterMediaTime (Compact 2013)

3/26/2014

Registers the media start and end times with the object.

Syntax

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 Value

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

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CRendererPosPassThru Class