[Bug 40414] VirtualDub 1.10.4 crashes when attempting to play video with Directx9/11 backend

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Apr 4 04:28:50 CDT 2016


https://bugs.winehq.org/show_bug.cgi?id=40414

--- Comment #5 from Nikolay Sivov <bunglehead at gmail.com> ---
>From their sources:

---
void VDTFenceManagerD3D11::Init(ID3D11Device *dev, ID3D11DeviceContext *devctx)
{
    D3D11_QUERY_DESC desc;
    desc.Query = D3D11_QUERY_EVENT;
    desc.MiscFlags = 0;
    HRESULT hr = dev->CreateQuery(&desc, NULL);

    mpD3DDevice = dev;
    mpD3DDevice->AddRef();
    mpD3DDeviceContext = devctx;
    mpD3DDeviceContext ->AddRef();

    mFirstFenceId = 1;
    mNextFenceId = 1;
}
---

So for this particular application return code does not affect anything.
However in d3d9 case similar call is used to set 'mbEventQueriesSupported'
variable. Our d3d9 CreateQuery() method handles NULL out pointer fine, and it's
not an error. D3D11 docs agree too, calling it an optional parameter.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list