[UWP][C++][Xbox] IMFSinkWriter - WriteSample problem RRS feed

  • Question

  • Hi,

    I have an UWP application that saves audio and video frames like here: https://github.com/mmaitre314/PictureMovie/blob/master/Extensions/PictureMovie.cpp
    The application works correctly on computers and phones. However, the Xbox often causes an error during the operation of adding audio or video frame: "
    This object needs to be initialized before the requested operation can be carried out." The example below:

    // Write the media sample - error on XBox - line 93
    here: https://github.com/mmaitre314/PictureMovie/blob/master/Extensions/PictureMovie.cpp
    CHK (_spSinkWriter-> WriteSample (_streamIndex, spSample.Get ()));

    The initialization was done correctly.

    Does anyone have an idea why the error only occurs on the console and what is the reason?

    Thanks for the help,

    Monday, October 1, 2018 10:11 AM

All replies

  • Hi,

    Well, since it's a third party sample, it would be better that you could ask the author about this in the Issues page of the GitHub.

    Best regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, October 2, 2018 2:00 AM