diff --git a/sys/v4l/gstv4lmjpegsink.c b/sys/v4l/gstv4lmjpegsink.c index e2f42c769e..c6edb7512d 100644 --- a/sys/v4l/gstv4lmjpegsink.c +++ b/sys/v4l/gstv4lmjpegsink.c @@ -184,7 +184,7 @@ gst_v4lmjpegsink_init (GstV4lMjpegSink *v4lmjpegsink) v4lmjpegsink->bufferpool = gst_buffer_pool_new( NULL, NULL, - gst_v4lmjpegsink_buffer_new, + (GstBufferPoolBufferNewFunction)gst_v4lmjpegsink_buffer_new, NULL, NULL, v4lmjpegsink); diff --git a/sys/v4l/gstv4lmjpegsrc.c b/sys/v4l/gstv4lmjpegsrc.c index f13669f8b3..8f70dd02a2 100644 --- a/sys/v4l/gstv4lmjpegsrc.c +++ b/sys/v4l/gstv4lmjpegsrc.c @@ -191,9 +191,9 @@ gst_v4lmjpegsrc_init (GstV4lMjpegSrc *v4lmjpegsrc) v4lmjpegsrc->bufferpool = gst_buffer_pool_new( NULL, NULL, - gst_v4lmjpegsrc_buffer_new, + (GstBufferPoolBufferNewFunction)gst_v4lmjpegsrc_buffer_new, NULL, - gst_v4lmjpegsrc_buffer_free, + (GstBufferPoolBufferFreeFunction)gst_v4lmjpegsrc_buffer_free, v4lmjpegsrc); v4lmjpegsrc->frame_width = 0; diff --git a/sys/v4l/gstv4lsrc.c b/sys/v4l/gstv4lsrc.c index a337d5c4a2..972b024966 100644 --- a/sys/v4l/gstv4lsrc.c +++ b/sys/v4l/gstv4lsrc.c @@ -168,9 +168,9 @@ gst_v4lsrc_init (GstV4lSrc *v4lsrc) v4lsrc->bufferpool = gst_buffer_pool_new( NULL, NULL, - gst_v4lsrc_buffer_new, + (GstBufferPoolBufferNewFunction)gst_v4lsrc_buffer_new, NULL, - gst_v4lsrc_buffer_free, + (GstBufferPoolBufferFreeFunction)gst_v4lsrc_buffer_free, v4lsrc); v4lsrc->palette = 0; /* means 'any' - user can specify a specific palette */