Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1472>
if (nv_ret != NV_ENC_SUCCESS) {
GST_ELEMENT_ERROR (nvenc, LIBRARY, SETTINGS, (NULL),
- ("Failed to %sinit encoder: %d", reconfigure ? "re" : "", nv_ret));
+ ("Failed to %sinit encoder: %d- %s", reconfigure ? "re" : "", nv_ret,
+ NvEncGetLastErrorString (nvenc->encoder)));
NvEncDestroyEncoder (nvenc->encoder);
nvenc->encoder = NULL;
return FALSE;
return nvenc_api.nvEncDestroyEncoder (encoder);
}
+const char *NVENCAPI
+NvEncGetLastErrorString (void *encoder)
+{
+ g_assert (nvenc_api.nvEncGetLastErrorString != NULL);
+ return nvenc_api.nvEncGetLastErrorString (encoder);
+}
+
NVENCSTATUS NVENCAPI
NvEncGetEncodeGUIDs (void *encoder, GUID * array, uint32_t array_size,
uint32_t * count)