What does HRESULT 0x000D4A42 (MF_S_SINK_NOT_FINALIZED) mean?

 
Previous Next
MF_S_ACTIVATE_REPLACED MF_S_SEQUENCER_CONTEXT_CANCELED

MF_S_SINK_NOT_FINALIZED

MF_S_SINK_NOT_FINALIZED is a success-status code with a serious output-integrity warning. The sink is shutting down, but finalization was not completed, so an archive file or other structured output can be incomplete or corrupted.

Make finalization an explicit lifecycle step

  • After the last sample, finish each stream and invoke the sink's finalization path before shutdown.
  • For IMFFinalizableMediaSink, wait for the asynchronous BeginFinalize operation and then call EndFinalize.
  • When using IMFSinkWriter, call Finalize and wait for completion before releasing the writer or closing the destination stream.

Microsoft specifically warns that omitting sink-writer finalization can leave required file headers missing. A process exit, COM release, or Shutdown call is not a substitute for completing the container's final structures and indexes.

Microsoft: BeginFinalize · Microsoft: IMFSinkWriter::Finalize · Microsoft: finalizable custom sink sample


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