d3d11decoder: WARNING if ID3D11VideoDevice is unavailable, not ERROR

gst_d3d11_decoder_new() method is also used for device capability
checking during plugin init. Although we are checking hardware
flag prior to that, it doesn't guarantee ID3D11VideoDevice interface.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2088>
This commit is contained in:
Seungha Yang 2021-03-16 19:09:59 +09:00 committed by GStreamer Marge Bot
parent 1d6cdbdc90
commit 3f08fcb4ff

View file

@ -209,13 +209,13 @@ gst_d3d11_decoder_constructed (GObject * object)
video_device = gst_d3d11_device_get_video_device_handle (self->device);
if (!video_device) {
GST_ERROR_OBJECT (self, "ID3D11VideoDevice is not available");
GST_WARNING_OBJECT (self, "ID3D11VideoDevice is not available");
return;
}
video_context = gst_d3d11_device_get_video_context_handle (self->device);
if (!video_context) {
GST_ERROR_OBJECT (self, "ID3D11VideoContext is not available");
GST_WARNING_OBJECT (self, "ID3D11VideoContext is not available");
return;
}