次の方法で共有


CMediaSample::GetTime (Compact 2013)

3/26/2014

Retrieves the stream time at which this sample should begin and finish.

Syntax

HRESULT GetTime(
  REFERENCE_TIME* pTimeStart,
  REFERENCE_TIME* pTimeEnd 
);

Parameters

  • pTimeStart
    Retrieved beginning stream time.
  • pTimeEnd
    Retrieved ending stream time.

Return Value

Returns VFW_E_SAMPLE_TIME_NOT_SET if this sample does not have valid timestamps, or NOERROR otherwise.

Remarks

This member function implements the IMediaSample::GetTime method.

It sets pTimeStart to the current value of m_Start and pTimeEnd to the current value of m_End.

Requirements

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

CMediaSample Class