Commit f61bbccb authored by Seungha Yang's avatar Seungha Yang 🐑
Browse files

nvenc: Use gpointer instead of void*

just convention
parent 30ed3032
......@@ -835,7 +835,7 @@ gst_nv_base_enc_bitstream_thread (gpointer user_data)
}
for (i = 0; i < state->n_buffers; i++) {
void *in_buf = state->in_bufs[i];
gpointer in_buf = state->in_bufs[i];
g_assert (in_buf != NULL);
#if HAVE_NVENC_GST_GL
......@@ -1615,8 +1615,8 @@ _acquire_input_buffer (GstNvBaseEnc * nvenc, gpointer * input)
static GstFlowReturn
_submit_input_buffer (GstNvBaseEnc * nvenc, GstVideoCodecFrame * frame,
GstVideoFrame * vframe, void *inputBuffer, void *inputBufferPtr,
NV_ENC_BUFFER_FORMAT bufferFormat, void *outputBufferPtr)
GstVideoFrame * vframe, gpointer inputBuffer, gpointer inputBufferPtr,
NV_ENC_BUFFER_FORMAT bufferFormat, gpointer outputBufferPtr)
{
GstNvBaseEncClass *nvenc_class = GST_NV_BASE_ENC_GET_CLASS (nvenc);
NV_ENC_PIC_PARAMS pic_params = { 0, };
......
......@@ -73,7 +73,7 @@ typedef struct {
gint gop_size;
GstCudaContext * cuda_ctx;
void * encoder;
gpointer encoder;
/* the supported input formats */
GValue * input_formats; /* OBJECT LOCK */
......@@ -103,8 +103,8 @@ typedef struct {
* 0 = none, 1 = fields, 2 = interleaved */
gint interlace_modes;
void *display; /* GstGLDisplay */
void *other_context; /* GstGLContext */
gpointer display; /* GstGLDisplay */
gpointer other_context; /* GstGLContext */
/* the maximum buffer size the encoder is configured for */
guint max_encode_width;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment