我在 SharpDX 应用程序中循环播放 h264 视频,有时我会遇到无法找到原因的崩溃。
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)
在这个函数中调用它:
public static Surface GetSurfaceFromMediaBuffer(MediaBuffer videoBuffer)
{
IntPtr surfacePtr;
MediaFactory.GetService(videoBuffer, mMrBufferService, typeof (Surface).GUID, out surfacePtr);
return new Surface(surfacePtr);
}
是否有与 Surface 或 MediaBuffer 相关的东西需要处理?
这是win7,32位。