[vlc-devel] [PATCH 2/7] vdpau: fix redundant const qualifier

Felix Abecassis felix.abecassis at gmail.com
Tue May 6 19:08:26 CEST 2014


Was meant as constant pointer and constant pointed data.
---
 modules/hw/vdpau/vlc_vdpau.c | 4 ++--
 modules/hw/vdpau/vlc_vdpau.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/hw/vdpau/vlc_vdpau.c b/modules/hw/vdpau/vlc_vdpau.c
index 8e0a76d..9b44be8 100644
--- a/modules/hw/vdpau/vlc_vdpau.c
+++ b/modules/hw/vdpau/vlc_vdpau.c
@@ -321,7 +321,7 @@ VdpStatus vdp_output_surface_render_output_surface(const vdp_t *vdp,
     VdpOutputSurface dst_surface, const VdpRect *dst_rect,
     VdpOutputSurface src_surface, const VdpRect *src_rect,
     const VdpColor *colors,
-    const VdpOutputSurfaceRenderBlendState const *state, uint32_t flags)
+    const VdpOutputSurfaceRenderBlendState *const state, uint32_t flags)
 {
     return vdp->vt.output_surface_render_output_surface(dst_surface, dst_rect,
         src_surface, src_rect, colors, state, flags);
@@ -422,7 +422,7 @@ VdpStatus vdp_video_mixer_set_feature_enables(const vdp_t *vdp,
 
 VdpStatus vdp_video_mixer_set_attribute_values(const vdp_t *vdp,
     VdpVideoMixer mixer, uint32_t count,
-    const VdpVideoMixerAttribute const *ids, const void *const *values)
+    const VdpVideoMixerAttribute *const ids, const void *const *values)
 {
     return vdp->vt.video_mixer_set_attribute_values(mixer, count, ids, values);
 }
diff --git a/modules/hw/vdpau/vlc_vdpau.h b/modules/hw/vdpau/vlc_vdpau.h
index f899ba2..d5f073e 100644
--- a/modules/hw/vdpau/vlc_vdpau.h
+++ b/modules/hw/vdpau/vlc_vdpau.h
@@ -79,7 +79,7 @@ VdpStatus vdp_bitmap_surface_put_bits_native(const vdp_t *, VdpBitmapSurface,
     const void *const *, const uint32_t *, const VdpRect *);
 VdpStatus vdp_output_surface_render_output_surface(const vdp_t *,
     VdpOutputSurface, const VdpRect *, VdpOutputSurface, const VdpRect *,
-    const VdpColor *, const VdpOutputSurfaceRenderBlendState const *,
+    const VdpColor *, const VdpOutputSurfaceRenderBlendState *const,
     uint32_t);
 VdpStatus vdp_output_surface_render_bitmap_surface(const vdp_t *,
     VdpOutputSurface, const VdpRect *, VdpBitmapSurface, const VdpRect *,
@@ -110,7 +110,7 @@ VdpStatus vdp_video_mixer_create(const vdp_t *, VdpDevice, uint32_t,
 VdpStatus vdp_video_mixer_set_feature_enables(const vdp_t *, VdpVideoMixer,
     uint32_t, const VdpVideoMixerFeature *, const VdpBool *);
 VdpStatus vdp_video_mixer_set_attribute_values(const vdp_t *, VdpVideoMixer,
-    uint32_t, const VdpVideoMixerAttribute const *, const void *const *);
+    uint32_t, const VdpVideoMixerAttribute *const, const void *const *);
 VdpStatus vdp_video_mixer_get_feature_support(const vdp_t *, VdpVideoMixer,
     uint32_t, const VdpVideoMixerFeature *, VdpBool *);
 VdpStatus vdp_video_mixer_get_feature_enables(const vdp_t *, VdpVideoMixer,
-- 
1.9.1




More information about the vlc-devel mailing list