Error event while media session is running

I'm getting an error event while the session is running (in the loop of the event handling). This event is ERROR_SXS_MANIFEST_FORMAT_ERROR and I didn't found any usefull information as to the cause of this error.

I have a custom source that send a single frame from a picture and a sink that saves the frame into a file. When I connect the source to the sink all is fine, and the frame is being saved. When I enter a MFT between them I get the error. I don't know where this error comes from, or what is the meaning of it.

Can anyone explain to me what this error means

Thanks.



Answer this question

Error event while media session is running

  • R.S.N

    A couple questions to help us get to the bottom of this:

    1. How does this error arrive Via MEError, or via some other event And at what point do you receive this error (like have you received an apparently successful MESessionStarted)
    2. Is this an MFT that you implemented
    3. Are you using the PMP (protected media path) Media Session, or just a plain old inproc Media Session (MFCreateMediaSession())



  • Abhishek Chadha

    Hi,
    Here are some answers to your questions. Thanks for the replay.

    1. This error arrives via MEError, The hrStatus I get is 0xc00d36b4, The facility which sent the error is FACILITY_MEDIASERVER. 
    This is the log file section of the events I'm getting:
    MESessionTopologySet
    Media session event: 112
    MESessionTopologyReady
    MESessionStarted
    Got Error event: 0xc00d36b4
    Shutting down the media session.

    2. Yes, this is an MFT that we (my team) created.
    3. No, we are not using PMP for now.

    Thanks.


  • Kiranvukkadala

    That error code is MF_E_INVALIDMEDIATYPE. (You can look up error codes by looking at mferror.h, which is included in the Vista SDK).

    I'm going to guess that your MFT is unhappy about the media types that have been negotiated. Since MESessionTopologySet has apparently succeeded (verify that it indeed came back with status code S_OK), that means that topology resolution succeeded with your MFT, but something went wrong afterwards.

    So now some more questions for you:

    Does your MFT get any ProcessInput and ProcessOutput calls after you start playback but before you see this error How do those go

    Another thing that might help me is knowing what your topology looks like. Is your MFT directly upstream of the video renderer Is it providing its own samples or writing its output into the samples that MF gives it



  • Error event while media session is running