mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
nvcodec: Fix crash in decoder on 32-bit Windows
Same fix as 1a7ea45ffd
, but I didn't
test the decoder so I missed that the function pointers here weren't
using the correct calling convention too.
This commit is contained in:
parent
dbb0e71e70
commit
3ca87d9988
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue