mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
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:
parent
1d6cdbdc90
commit
3f08fcb4ff
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue