IMFSinkWriter::BeginWriting method

Initializes the sink writer for writing.

Syntax


HRESULT BeginWriting();

Parameters

This method has no parameters.

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

Call this method after you configure the input streams and before you send any data to the sink writer.

You must call BeginWriting before calling any of the following methods:

The underlying media sink must have at least one input stream. Otherwise, BeginWriting returns MF_E_INVALIDREQUEST. To add input streams, call the IMFSinkWriter::AddStream method.

If BeginWriting succeeds, any further calls to BeginWriting return MF_E_INVALIDREQUEST.

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: