dfbvideosink: Don't use void * pointer arithmetic

This commit is contained in:
Sebastian Dröge 2009-02-22 14:58:36 +01:00
parent 692cd5ef7b
commit a6ed62add8

View File

@ -332,8 +332,8 @@ gst_dfbvideosink_surface_destroy (GstDfbVideoSink * dfbvideosink,
gst_object_unref (dfbvideosink); gst_object_unref (dfbvideosink);
} }
GST_MINI_OBJECT_CLASS (surface_parent_class)-> GST_MINI_OBJECT_CLASS (surface_parent_class)->finalize (GST_MINI_OBJECT
finalize (GST_MINI_OBJECT (surface)); (surface));
} }
static gpointer static gpointer
@ -1538,7 +1538,7 @@ gst_dfbvideosink_show_frame (GstBaseSink * bsink, GstBuffer * buf)
if (mem_cpy) { if (mem_cpy) {
IDirectFBSurface *dest = NULL, *surface = NULL; IDirectFBSurface *dest = NULL, *surface = NULL;
gpointer data; guint8 *data;
gint dest_pitch, src_pitch, line; gint dest_pitch, src_pitch, line;
GstStructure *structure; GstStructure *structure;
@ -1585,7 +1585,7 @@ gst_dfbvideosink_show_frame (GstBaseSink * bsink, GstBuffer * buf)
dfbvideosink->layer->WaitForSync (dfbvideosink->layer); 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) { if (res != DFB_OK) {
GST_WARNING_OBJECT (dfbvideosink, "failed locking the external " GST_WARNING_OBJECT (dfbvideosink, "failed locking the external "
"subsurface for writing"); "subsurface for writing");