IMediaSample::SetTime
Sets the stream time when this sample should begin and finish.
HRESULT SetTime(
REFERENCE_TIME *pTimeStart,
REFERENCE_TIME *pTimeEnd);
Parameters
- pTimeStart
[in] Stream time at which the sample begins. - pTimeEnd
[in] Stream time at which the sample ends.
Return Values
Returns an HRESULT value that depends on the implementation. HRESULT can be one of the following standard constants, or other values not listed.
E_FAIL | Failure. |
E_POINTER | Null pointer argument. |
E_INVALIDARG | Invalid argument. |
E_NOTIMPL | Method isn't supported. |
S_OK or NOERROR | Success. |
Remarks
To reset the time, use this method with both pTimeStart and pTimeEnd set to NULL. This will cause IMediaSample::GetTime to return VFW_S_NO_STOP_TIME.
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.