mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
nvh264sldec: Fix for possible wrong device selction
decoder should select assigned CUDA device id Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1357>
This commit is contained in:
parent
fc8782d9d0
commit
82ddb0600b
1 changed files with 2 additions and 1 deletions
|
@ -247,10 +247,11 @@ static gboolean
|
|||
gst_nv_h264_dec_open (GstVideoDecoder * decoder)
|
||||
{
|
||||
GstNvH264Dec *self = GST_NV_H264_DEC (decoder);
|
||||
GstNvH264DecClass *klass = GST_NV_H264_DEC_GET_CLASS (self);
|
||||
CUresult cuda_ret;
|
||||
|
||||
if (!gst_cuda_ensure_element_context (GST_ELEMENT_CAST (decoder),
|
||||
0, &self->context)) {
|
||||
klass->cuda_device_id, &self->context)) {
|
||||
GST_ERROR_OBJECT (self, "failed to create CUDA context");
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue