IKsPin::KsMediaSamplesCompleted method (ksproxy.h)

The KsMediaSamplesCompleted method informs a pin that a stream segment completed.

Syntax

HRESULT KsMediaSamplesCompleted(
  [in] PKSSTREAM_SEGMENT StreamSegment
);

Parameters

[in] StreamSegment

Pointer to a KSSTREAM_SEGMENT structure that contains header information for a completed stream segment.

Return value

Returns NOERROR if successful; otherwise, returns an error code.

Remarks

Input pins do nothing with the supplied header information and just return NOERROR. Output pins remove the head of the input and output (I/O) queue and add the next in the list to the I/O slots.

When a client calls the IKsInterfaceHandler::KsCompleteIo method of an interface handler to complete an I/O operation, KsCompleteIo calls KsMediaSamplesCompleted for pins.

Requirements

Requirement Value
Target Platform Desktop
Header ksproxy.h (include Ksproxy.h)

See also

IKsInterfaceHandler

IKsInterfaceHandler::KsCompleteIo

KSSTREAM_SEGMENT