From 3f08fcb4ff244c974494ba9a1966a2fbd43c3188 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 16 Mar 2021 19:09:59 +0900 Subject: [PATCH] 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: --- sys/d3d11/gstd3d11decoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/d3d11/gstd3d11decoder.cpp b/sys/d3d11/gstd3d11decoder.cpp index b4ab233d41..6292f7acee 100644 --- a/sys/d3d11/gstd3d11decoder.cpp +++ b/sys/d3d11/gstd3d11decoder.cpp @@ -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; }