What does HRESULT 0xC00D4A3D (MF_E_SAMPLEALLOCATOR_CANCELED) mean?

 
Previous Next
MF_E_STREAMSINK_EXISTS MF_E_SAMPLEALLOCATOR_EMPTY

MF_E_SAMPLEALLOCATOR_CANCELED

MF_E_SAMPLEALLOCATOR_CANCELED is associated with the lifetime of a video sample allocator and outstanding allocation work. The EVR exposes IMFVideoSampleAllocator as a service, and custom video sinks can implement the same allocation contract.

Correlate cancellation with allocator reconfiguration

  • Log allocator initialization, uninitialization, media-type changes, and every pending AllocateSample request.
  • Do not treat a canceled request as proof that the Direct3D device or decoder failed.
  • After a reset, use the allocator state and media type established by the new initialization sequence rather than returning a sample from the old pool.

UninitializeSampleAllocator releases allocated samples, while initialization defines the requested frame count and media type. A teardown or reconfiguration race can therefore invalidate pending work. Fix request ownership and ordering instead of immediately increasing the sample count.

Microsoft: IMFVideoSampleAllocator · Microsoft: InitializeSampleAllocator · Microsoft: UninitializeSampleAllocator


Looking for a different code? Search another status or error code.