[MPlayer-cvslog] r25260 - in trunk: libmpcodecs/ve_x264.c libvo/vo_zr.c stream/stream_dvd.c

reimar subversion at mplayerhq.hu
Sun Dec 2 17:40:20 CET 2007


Author: reimar
Date: Sun Dec  2 17:40:20 2007
New Revision: 25260

Log:
Add appropriate const specifiers to some custom parse functions.


Modified:
   trunk/libmpcodecs/ve_x264.c
   trunk/libvo/vo_zr.c
   trunk/stream/stream_dvd.c

Modified: trunk/libmpcodecs/ve_x264.c
==============================================================================
--- trunk/libmpcodecs/ve_x264.c	(original)
+++ trunk/libmpcodecs/ve_x264.c	Sun Dec  2 17:40:20 2007
@@ -76,7 +76,7 @@ static int encode_nals(uint8_t *buf, int
 static int put_image(struct vf_instance_s *vf, mp_image_t *mpi, double pts);
 static int encode_frame(struct vf_instance_s *vf, x264_picture_t *pic_in);
 
-void x264enc_set_param(m_option_t* opt, char* arg)
+void x264enc_set_param(const m_option_t* opt, char* arg)
 {
     static int initted = 0;
     if(!initted) {

Modified: trunk/libvo/vo_zr.c
==============================================================================
--- trunk/libvo/vo_zr.c	(original)
+++ trunk/libvo/vo_zr.c	Sun Dec  2 17:40:20 2007
@@ -649,7 +649,7 @@ static int draw_slice(uint8_t *srcimg[],
 
 /* copied and adapted from vo_aa_parseoption */
 int
-vo_zr_parseoption(m_option_t* conf, char *opt, char *param){
+vo_zr_parseoption(const m_option_t* conf, const char *opt, const char *param){
     /* got an option starting with zr */
     zr_info_t *zr = &zr_info[zr_parsing];
     int i;
@@ -775,7 +775,7 @@ vo_zr_parseoption(m_option_t* conf, char
     return ERR_NOT_AN_OPTION;
 }
 
-void vo_zr_revertoption(m_option_t* opt,char* param) {
+void vo_zr_revertoption(const m_option_t* opt,const char* param) {
 
   zr_info_t *zr = &zr_info[1];
   zr_count = 1;

Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c	(original)
+++ trunk/stream/stream_dvd.c	Sun Dec  2 17:40:20 2007
@@ -156,7 +156,7 @@ static struct m_struct_st stream_opts = 
   stream_opts_fields
 };
 
-int dvd_parse_chapter_range(m_option_t *conf, const char *range) {
+int dvd_parse_chapter_range(const m_option_t *conf, const char *range) {
   const char *s;
   char *t;
   if (!range)



More information about the MPlayer-cvslog mailing list