After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 796203 - nvenc: Fix build warning error
nvenc: Fix build warning error
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 1.15.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on: 796202
Blocks:
 
 
Reported: 2018-05-17 12:57 UTC by Seungha Yang
Modified: 2018-05-18 09:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
nvenc: Fix build warning error (1.78 KB, patch)
2018-05-17 12:58 UTC, Seungha Yang
committed Details | Review

Description Seungha Yang 2018-05-17 12:57:29 UTC
'cuDeviceComputeCapability' was deprecated as of CUDA 5.0

gstnvenc.c: In function ‘gst_nvenc_create_cuda_context’:
gstnvenc.c:290:9: error: ‘cuDeviceComputeCapability’ is deprecated [-Werror=deprecated-declarations]
         && cuDeviceComputeCapability (&maj, &min, cdev) == CUDA_SUCCESS) {
         ^
Comment 1 Seungha Yang 2018-05-17 12:58:02 UTC
Created attachment 372148 [details] [review]
nvenc: Fix build warning error
Comment 2 Seungha Yang 2018-05-17 13:00:34 UTC
Note that this warning is shown in case of CUDA 9.2 version
Comment 3 Tim-Philipp Müller 2018-05-18 09:46:42 UTC
Thanks. I trust this still works with older versions too.

commit 535adfee37b7be8064e302e4f17b1df1ca14ae14
Author: Seungha Yang <seungha.yang@navercorp.com>
Date:   Thu May 17 21:49:25 2018 +0900

    nvenc: Fix build warning error
    
    'cuDeviceComputeCapability' was deprecated as of CUDA 5.0
    
    gstnvenc.c: In function ‘gst_nvenc_create_cuda_context’:
    gstnvenc.c:290:9: error: ‘cuDeviceComputeCapability’ is deprecated [-Werror=deprecated-declarations]
             && cuDeviceComputeCapability (&maj, &min, cdev) == CUDA_SUCCESS) {
             ^
    
    https://bugzilla.gnome.org/show_bug.cgi?id=796203