SharpDX crash when rendering h264 video using MediaFoundation

0

I am looping a h264 video in a SharpDX app and occasionally I am getting a crash which I am unable to find the cause.

SharpDX.SharpDXException: HRESULT: [0xC00D36BA], Module: [Unknown], ApiCode: [Unknown/Unknown], Message: Unknown
at SharpDX.Result.CheckError()
at SharpDX.MediaFoundation.MediaFactory.GetService(ComObject unkObjectRef, Guid guidService, Guid riid, IntPtr& vObjectOut)

it is called in this function:

    public static Surface GetSurfaceFromMediaBuffer(MediaBuffer videoBuffer)
    {
        IntPtr surfacePtr;

        MediaFactory.GetService(videoBuffer, mMrBufferService, typeof (Surface).GUID, out surfacePtr);

        return new Surface(surfacePtr);
    }

is there something related to Surface or MediaBuffer which needs Disposing?

this is on win7, 32bit.

c#
directx-11
directx-9
sharpdx
asked on Stack Overflow Nov 6, 2013 by clamp

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0