gstnvbaseenc: Avoid unused variable warning when code is not included
Variable cuda_ret is not used when the macro #if HAVE_NVCODEC_GST_GL does not pass and causes warning. This commit moves the variable inside the #if block.
Variable cuda_ret is not used when the macro #if HAVE_NVCODEC_GST_GL does not pass and causes warning. This commit moves the variable inside the #if block.