From a6ed62add8b3d49c962b655869f646b468f45b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 22 Feb 2009 14:58:36 +0100 Subject: dfbvideosink: Don't use void * pointer arithmetic --- ext/directfb/dfbvideosink.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/directfb') diff --git a/ext/directfb/dfbvideosink.c b/ext/directfb/dfbvideosink.c index 6251803e..0552015f 100644 --- a/ext/directfb/dfbvideosink.c +++ b/ext/directfb/dfbvideosink.c @@ -332,8 +332,8 @@ gst_dfbvideosink_surface_destroy (GstDfbVideoSink * dfbvideosink, gst_object_unref (dfbvideosink); } - GST_MINI_OBJECT_CLASS (surface_parent_class)-> - finalize (GST_MINI_OBJECT (surface)); + GST_MINI_OBJECT_CLASS (surface_parent_class)->finalize (GST_MINI_OBJECT + (surface)); } static gpointer @@ -1538,7 +1538,7 @@ gst_dfbvideosink_show_frame (GstBaseSink * bsink, GstBuffer * buf) if (mem_cpy) { IDirectFBSurface *dest = NULL, *surface = NULL; - gpointer data; + guint8 *data; gint dest_pitch, src_pitch, line; GstStructure *structure; @@ -1585,7 +1585,7 @@ gst_dfbvideosink_show_frame (GstBaseSink * bsink, GstBuffer * buf) dfbvideosink->layer->WaitForSync (dfbvideosink->layer); } - res = dest->Lock (dest, DSLF_WRITE, &data, &dest_pitch); + res = dest->Lock (dest, DSLF_WRITE, (void *) &data, &dest_pitch); if (res != DFB_OK) { GST_WARNING_OBJECT (dfbvideosink, "failed locking the external " "subsurface for writing"); -- cgit v1.2.1