diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-02-22 14:58:36 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-02-22 14:58:36 +0100 |
commit | a6ed62add8b3d49c962b655869f646b468f45b02 (patch) | |
tree | a558d394598bd193a516c4e87257be036d3e8bc5 /ext/directfb | |
parent | 692cd5ef7b66e198a80f0234f76d149f9baf3c64 (diff) | |
download | gst-plugins-bad-a6ed62add8b3d49c962b655869f646b468f45b02.tar.gz gst-plugins-bad-a6ed62add8b3d49c962b655869f646b468f45b02.tar.bz2 gst-plugins-bad-a6ed62add8b3d49c962b655869f646b468f45b02.zip |
dfbvideosink: Don't use void * pointer arithmetic
Diffstat (limited to 'ext/directfb')
-rw-r--r-- | ext/directfb/dfbvideosink.c | 8 |
1 files changed, 4 insertions, 4 deletions
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"); |