changeset 32567:2546de3e5afe

Mark input buffer that is never modified as const.
author reimar
date Sat, 27 Nov 2010 10:12:35 +0000
parents da2dc11d8436
children 356050e526ad
files libmpdemux/demux_ty_osd.c libmpdemux/demux_ty_osd.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ty_osd.c	Sat Nov 27 10:09:20 2010 +0000
+++ b/libmpdemux/demux_ty_osd.c	Sat Nov 27 10:12:35 2010 +0000
@@ -861,7 +861,7 @@
 // ===========================================================================
 // Callback from Video Display Processing to put up the OSD
 // ===========================================================================
-void ty_processuserdata( unsigned char* buf, int len )
+void ty_processuserdata( const unsigned char* buf, int len )
 {
 	int index;
 
--- a/libmpdemux/demux_ty_osd.h	Sat Nov 27 10:09:20 2010 +0000
+++ b/libmpdemux/demux_ty_osd.h	Sat Nov 27 10:12:35 2010 +0000
@@ -20,6 +20,6 @@
 #define MPLAYER_DEMUX_TY_OSD_H
 
 void ty_ClearOSD(int start);
-void ty_processuserdata(unsigned char *buf, int len);
+void ty_processuserdata(const unsigned char *buf, int len);
 
 #endif /* MPLAYER_DEMUX_TY_OSD_H */