From 3ca87d998896f76b3d4ed62006f45f36a876de72 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 20 Jan 2020 15:22:26 +0530 Subject: [PATCH] nvcodec: Fix crash in decoder on 32-bit Windows Same fix as 1a7ea45ffde40a4bea63562a2cc9892396d9f7eb, but I didn't test the decoder so I missed that the function pointers here weren't using the correct calling convention too. --- sys/nvcodec/gstnvdec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/nvcodec/gstnvdec.c b/sys/nvcodec/gstnvdec.c index a65f2389f0..4bf4abefa0 100644 --- a/sys/nvcodec/gstnvdec.c +++ b/sys/nvcodec/gstnvdec.c @@ -220,7 +220,7 @@ get_cuda_surface_format_from_gst (GstVideoFormat format) return cudaVideoSurfaceFormat_NV12; } -static gboolean +static gboolean CUDAAPI parser_sequence_callback (GstNvDec * nvdec, CUVIDEOFORMAT * format) { guint width, height; @@ -508,7 +508,7 @@ gst_nvdec_negotiate (GstVideoDecoder * decoder) return ret; } -static gboolean +static gboolean CUDAAPI parser_decode_callback (GstNvDec * nvdec, CUVIDPICPARAMS * params) { GList *iter, *pending_frames; @@ -572,7 +572,7 @@ error: return FALSE; } -static gboolean +static gboolean CUDAAPI parser_display_callback (GstNvDec * nvdec, CUVIDPARSERDISPINFO * dispinfo) { GList *iter, *pending_frames;