mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-26 19:12:57 +00:00
d3d11videosink: Error out if RTV is unavailable
Add RTV pointer validation Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3573>
This commit is contained in:
parent
a0526b4ac2
commit
7a7de1aafc
1 changed files with 5 additions and 0 deletions
|
@ -889,6 +889,11 @@ gst_d3d111_window_present (GstD3D11Window * self, GstBuffer * buffer,
|
|||
if (!buffer)
|
||||
return GST_FLOW_OK;
|
||||
|
||||
if (!rtv) {
|
||||
GST_ERROR_OBJECT (self, "RTV is unavailable");
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
|
||||
{
|
||||
GstMapInfo infos[GST_VIDEO_MAX_PLANES];
|
||||
ID3D11ShaderResourceView *srv[GST_VIDEO_MAX_PLANES];
|
||||
|
|
Loading…
Reference in a new issue