why the interface IMFTrackedSample::SetAllocator always return MF_E_NOTACCEPTING? RRS feed

  • Question

  • hi all,

    when I write video decoder with DXVA2 and media foundation, refer to: http://msdn.microsoft.com/en-us/library/windows/desktop/aa965266(v=vs.85).aspx


    I Set Allocator successfully in firstly, then always SetAllocator() failed with the value "MF_E_NOTACCEPTING", popup error message "the callee is currently not accepting further input.", within my Callback, I only get IMFAsyncResult status.

    can anyone tell me why it, how to write the callback for render invoking?



    one work one gain!

    • Edited by Jackic Tuesday, December 25, 2012 9:20 AM modifued
    Tuesday, December 25, 2012 9:05 AM

All replies

  • Linked MSDN article has the answer:

      After the callback is invoked, the sample clears the callback. To reinstate the callback, you must call SetAllocator again.

    You seem to never release the sample completely and the callback you configured once is never called. Attempts to track a sample already being tracked result in mentioned error by design.


    Tuesday, January 8, 2019 6:57 PM