mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
d3d11screencapturesrc: Hide symbols
Fix potential linking error in case of static build Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5883>
This commit is contained in:
parent
ae3ed20f41
commit
24d515f57d
1 changed files with 3 additions and 10 deletions
|
@ -81,7 +81,7 @@ struct VERTEX
|
||||||
|
|
||||||
/* List of expected error cases */
|
/* List of expected error cases */
|
||||||
/* These are the errors we expect from general Dxgi API due to a transition */
|
/* These are the errors we expect from general Dxgi API due to a transition */
|
||||||
HRESULT SystemTransitionsExpectedErrors[] = {
|
static HRESULT SystemTransitionsExpectedErrors[] = {
|
||||||
DXGI_ERROR_DEVICE_REMOVED,
|
DXGI_ERROR_DEVICE_REMOVED,
|
||||||
DXGI_ERROR_ACCESS_LOST,
|
DXGI_ERROR_ACCESS_LOST,
|
||||||
static_cast<HRESULT>(WAIT_ABANDONED),
|
static_cast<HRESULT>(WAIT_ABANDONED),
|
||||||
|
@ -90,7 +90,7 @@ HRESULT SystemTransitionsExpectedErrors[] = {
|
||||||
|
|
||||||
/* These are the errors we expect from IDXGIOutput1::DuplicateOutput
|
/* These are the errors we expect from IDXGIOutput1::DuplicateOutput
|
||||||
* due to a transition */
|
* due to a transition */
|
||||||
HRESULT CreateDuplicationExpectedErrors[] = {
|
static HRESULT CreateDuplicationExpectedErrors[] = {
|
||||||
DXGI_ERROR_DEVICE_REMOVED,
|
DXGI_ERROR_DEVICE_REMOVED,
|
||||||
static_cast<HRESULT>(E_ACCESSDENIED),
|
static_cast<HRESULT>(E_ACCESSDENIED),
|
||||||
DXGI_ERROR_SESSION_DISCONNECTED,
|
DXGI_ERROR_SESSION_DISCONNECTED,
|
||||||
|
@ -99,19 +99,12 @@ HRESULT CreateDuplicationExpectedErrors[] = {
|
||||||
|
|
||||||
/* These are the errors we expect from IDXGIOutputDuplication methods
|
/* These are the errors we expect from IDXGIOutputDuplication methods
|
||||||
* due to a transition */
|
* due to a transition */
|
||||||
HRESULT FrameInfoExpectedErrors[] = {
|
static HRESULT FrameInfoExpectedErrors[] = {
|
||||||
DXGI_ERROR_DEVICE_REMOVED,
|
DXGI_ERROR_DEVICE_REMOVED,
|
||||||
DXGI_ERROR_ACCESS_LOST,
|
DXGI_ERROR_ACCESS_LOST,
|
||||||
S_OK
|
S_OK
|
||||||
};
|
};
|
||||||
|
|
||||||
/* These are the errors we expect from IDXGIAdapter::EnumOutputs methods
|
|
||||||
* due to outputs becoming stale during a transition */
|
|
||||||
HRESULT EnumOutputsExpectedErrors[] = {
|
|
||||||
DXGI_ERROR_NOT_FOUND,
|
|
||||||
S_OK
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
gst_d3d11_dxgi_capture_return_from_hr (ID3D11Device * device,
|
gst_d3d11_dxgi_capture_return_from_hr (ID3D11Device * device,
|
||||||
HRESULT hr, HRESULT * expected_errors = nullptr)
|
HRESULT hr, HRESULT * expected_errors = nullptr)
|
||||||
|
|
Loading…
Reference in a new issue