UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:mfreadwrite.IMFSinkWriter.WriteSample |
IMFSinkWriter::WriteSample (mfreadwrite.h) |
Delivers a sample to the sink writer. |
|
mf\imfsinkwriter_writesample.htm |
mf |
1c65a5d0-cc1b-456e-9d88-a24da57ee30a |
12/05/2018 |
IMFSinkWriter interface [Media Foundation],WriteSample method, IMFSinkWriter.WriteSample, IMFSinkWriter::WriteSample, WriteSample, WriteSample method [Media Foundation], WriteSample method [Media Foundation],IMFSinkWriter interface, mf.imfsinkwriter_writesample, mfreadwrite/IMFSinkWriter::WriteSample |
mfreadwrite.h |
Windows |
Windows 7, Windows Vista and Platform Update Supplement for Windows Vista [desktop apps \| UWP apps] |
Windows Server 2008 R2 [desktop apps \| UWP apps] |
Windows |
19H1 |
|
|
|
|
|
|
Delivers a sample to the sink writer.
The zero-based index of the stream for this sample.
A pointer to the IMFSample interface of the sample.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
|
The request is invalid. |
You must call IMFSinkWriter::BeginWriting before calling this method. Otherwise, the method returns MF_E_INVALIDREQUEST.
By default, the sink writer limits the rate of incoming data by blocking the calling thread inside the WriteSample method. This prevents the application from delivering samples too quickly. To disable this behavior, set the MF_SINK_WRITER_DISABLE_THROTTLING attribute when you create the sink writer.
This interface is available on Windows Vista if Platform Update Supplement for Windows Vista is installed.