ltmmSampleSource.DeliverEndOfStream Method

Visual Basic Example

Syntax

object.DeliverEndOfStream(TimeOut As Long)

Remarks

Informs the objects "downstream" of the sample source object that the source has reached the end of the data stream.

In some cases (for example when writing AVI files), stopping the object without calling this method might indicate a stop caused by an error. Such a stop can have unpredictable results (the AVI might not get indexed properly). It is recommended you call this method before stopping the object.

If the method fails, an error is raised. For more information, refer to the Error Codes.

Most time-out situations are the result of an error condition. The error returned for a timeout condition is E_ABORT. If you receive an E_ABORT error code and your timeout was set sufficiently high, then a problem has occurred downstream. In this case, you should call the main object's "Stop" method and report an error.

Platforms

Win32, x64

See Also

Elements:

ltmmSampleSource.DeliverSample Method, ltmmSampleSource.GetMediaType Method, ltmmSampleSource.GetSampleBuffer Method, ltmmSampleSource.SetMediaType Method

Topic:

ltmmSampleSource Object

 

Implementing an ltmmSampleSource Object