nvcodec: Fix crash on 32-bit Windows
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 20 Jan 2020 09:52:26 +0000 (15:22 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Mon, 20 Jan 2020 11:45:55 +0000 (17:15 +0530)
commit1a7ea45ffde40a4bea63562a2cc9892396d9f7eb
treef1d6bc09925b3285a6e726a9da97839b39581be5
parent7e93ae063817ae0d75a3bba354941db23ab3307b
nvcodec: Fix crash on 32-bit Windows

We weren't using the correct calling convention when calling CUDA and
CUVID APIs. `CUDAAPI` is `__stdcall` on Windows. This was working fine
on x64 because `__stdcall` is ignored and there's no special calling
convention. However, on x86, we need to use `__stdcall`.
sys/nvcodec/gstcudaloader.c
sys/nvcodec/gstcudaloader.h
sys/nvcodec/gstcuvidloader.c
sys/nvcodec/gstcuvidloader.h
sys/nvcodec/stub/cuda.h