EC_END_OF_SEGMENT

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The end of a segment was reached.

Parameters

lParam1

(const REFERENCE_TIME*) Pointer to a REFERENCE_TIME value that specifies the accumulated stream time since the start of the segment, in 100-nanosecond units.

lParam2

(DWORD) Segment number (zero-based).

Default Action

The filter graph manager checks the number of EC_END_OF_SEGMENT events against the number of EC_SEGMENT_STARTED events. If they match, it forwards the EC_END_OF_SEGMENT event to the application. Applications cannot override the default action for this event.

Remarks

This event code supports seamless looping. When a call to the IMediaSeeking::SetPositions method includes the AM_SEEKING_Segment flag, the source filter sends this event code instead of calling IPin::EndOfStream.

Requirements

Requirement Value
Header
Dshow.h

See also

Event Notification Codes

Event Notification in DirectShow