mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
d3d11videosink: Fix crash caused by missing null termination
gst_caps_features_new() must be null terminated. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1524>
This commit is contained in:
parent
7c696b67be
commit
95e007ac49
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ gst_d3d11_video_sink_get_caps (GstBaseSink * sink, GstCaps * filter)
|
|||
D3D11_FORMAT_SUPPORT_TEXTURE2D | D3D11_FORMAT_SUPPORT_DISPLAY);
|
||||
overlaycaps = gst_caps_copy (caps);
|
||||
features = gst_caps_features_new (GST_CAPS_FEATURE_MEMORY_D3D11_MEMORY,
|
||||
GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION);
|
||||
GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION, NULL);
|
||||
gst_caps_set_features_simple (overlaycaps, features);
|
||||
gst_caps_append (caps, overlaycaps);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue