[vlc-commits] picture_Setup: missing const

Rémi Denis-Courmont git at videolan.org
Tue Mar 11 23:25:26 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Mar 11 23:48:57 2014 +0200| [4f86b9d4a9cb3bd0d210e7b2d54e1c834a1239f6] | committer: Rémi Denis-Courmont

picture_Setup: missing const

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4f86b9d4a9cb3bd0d210e7b2d54e1c834a1239f6
---

 include/vlc_picture.h |    2 +-
 src/misc/picture.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/vlc_picture.h b/include/vlc_picture.h
index 3400689..d3e3b99 100644
--- a/include/vlc_picture.h
+++ b/include/vlc_picture.h
@@ -235,7 +235,7 @@ VLC_API int picture_Export( vlc_object_t *p_obj, block_t **pp_image, video_forma
  *
  * It can be useful to get the properties of planes.
  */
-VLC_API int picture_Setup( picture_t *, video_format_t * );
+VLC_API int picture_Setup( picture_t *, const video_format_t * );
 
 
 /**
diff --git a/src/misc/picture.c b/src/misc/picture.c
index 6c9ec90..7c6fa6a 100644
--- a/src/misc/picture.c
+++ b/src/misc/picture.c
@@ -128,7 +128,7 @@ static int LCM( int a, int b )
     return a * b / GCD( a, b );
 }
 
-int picture_Setup( picture_t *p_picture, video_format_t *fmt )
+int picture_Setup( picture_t *p_picture, const video_format_t *restrict fmt )
 {
     /* Store default values */
     p_picture->i_planes = 0;



More information about the vlc-commits mailing list