Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMFSinkWriter::NotifyEndOfSegment method

Notifies the media sink that a stream has reached the end of a segment.

Syntax


HRESULT NotifyEndOfSegment(
  [in] DWORD dwStreamIndex
);

Parameters

dwStreamIndex [in]

The zero-based index of a stream, or MF_SINK_WRITER_ALL_STREAMS to signal that all streams have reached the end of a segment.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

MF_E_INVALIDREQUEST

The request is invalid.

 

Remarks

You must call IMFSinkWriter::BeginWriting before calling this method. Otherwise, the method returns MF_E_INVALIDREQUEST.

This method sends an MFSTREAMSINK_MARKER_ENDOFSEGMENT marker to the media sink for the specified streams. For more information, see IMFStreamSink::PlaceMarker.

This interface is available on Windows Vista if Platform Update Supplement for Windows Vista is installed.

Requirements

Minimum supported client

Windows 7, Windows Vista and Platform Update Supplement for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

Mfreadwrite.h

See also

Sink Writer
IMFSinkWriter

 

 

Show:
© 2017 Microsoft