locked
MFPutWorkItem returns MF_E_UNEXPECTED sometimes RRS feed

  • Question

  • hi there,

    in my scenario, i have several Mediasessions running in parallel with Custom MediaSources and a custom Decoder MFT.

    These sessions (and therefore also the media sources) are created and closed in parallel.

    My MediaSource allocates a private WorkQueue using MFAllocateWorkQueue (based on the samples from the Windows SDK - OpQueue.h) to perform certain steps asynchronously. So far everything works great. However, in rare cases (sometimes during Playback, sometimes when playback is Started) calling MFPutWorkItem on the WorkQueue returns MF_E_UNEXPECTED. The WorkQueue remains unusable from this point on.

    I tried getting some more information using mftrace, but even with level 16 i just get messages from my own code, nothing from WorkQueue-stuff itself.

    My target platform is Windows 7, so trying MFPutWorkItem2 isn´t an option for now.

    Any ideas on what might be the reason for MFPutWorkItem to deliver this "unexpected" issue? 

    Thanks in advance

    Friday, July 26, 2013 6:50 AM