d3d11decoder: WARNING if ID3D11VideoDevice is unavailable, not ERROR
authorSeungha Yang <seungha@centricular.com>
Tue, 16 Mar 2021 10:09:59 +0000 (19:09 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 16 Mar 2021 12:39:23 +0000 (12:39 +0000)
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>

sys/d3d11/gstd3d11decoder.cpp

index b4ab233..6292f7a 100644 (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;
   }