mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
nvencoder: Fix critical warning in autogpu mode
If upstream memory is not CUDA, CUDA context will be null. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3992>
This commit is contained in:
parent
59f359eb99
commit
58373e38f4
1 changed files with 0 additions and 3 deletions
|
@ -935,9 +935,6 @@ gst_nv_encoder_init_session (GstNvEncoder * self, GstBuffer * in_buf)
|
|||
if (priv->stream)
|
||||
gst_cuda_stream_ref (priv->stream);
|
||||
}
|
||||
|
||||
if (!priv->stream)
|
||||
priv->stream = gst_cuda_stream_new (priv->context);
|
||||
}
|
||||
}
|
||||
#ifdef G_OS_WIN32
|
||||
|
|
Loading…
Reference in a new issue