What does HRESULT 0x80040212 (VFW_E_SIZENOTSET) mean?

 
Could be also:
ConstantTypeOS
TPC_E_NO_DEFAULT_TABLETHRESULTWindows
Previous Next
TPC_E_NO_DEFAULT_TABLET VFW_E_NO_CLOCK

VFW_E_SIZENOTSET

VFW_E_SIZENOTSET is a DirectShow HRESULT. The allocator cannot reserve memory or create a media sample until a nonzero buffer size has been negotiated. The failure usually comes from an incomplete ALLOCATOR_PROPERTIES setup in a custom filter or an uninitialised media type.

What to inspect

  • Calculate and set cbBuffer from the negotiated media format before committing the allocator.
  • Check that the output pin's buffer-size decision handles downstream requirements and uses the final media type.
  • For video, include stride and image height; for audio, account for block alignment and the maximum sample duration.

A zero or stale size may work for a trivial test format and then fail when resolution, sample rate or subtype changes.

Microsoft: DirectShow media samples and allocators


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