marks some read-only char* inside structs as const, patch by Stefan Huehner, stefan At huehner-org

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19199 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reynaldo 2006-07-27 17:35:06 +00:00
parent b4196c01c7
commit db5487225c
6 changed files with 11 additions and 11 deletions

View File

@ -23,7 +23,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
af->data->rate = ((af_data_t*)arg)->rate;
af->data->nch = ((af_data_t*)arg)->nch;
af->data->format= AF_FORMAT_FLOAT_NE;
af->data->bps = 4;
af->data->bps = 8;
return af_test_output(af,(af_data_t*)arg);
}
return AF_UNKNOWN;
@ -41,7 +41,7 @@ static af_data_t* play(struct af_instance_s* af, af_data_t* data)
{
af_data_t* c = data; // Current working data
float* a = c->audio; // Audio data
int len = c->len/4; // Number of samples in current audio block
int len = c->len/8; // Number of samples in current audio block
int nch = c->nch; // Number of channels
register int i;

View File

@ -26,7 +26,7 @@
#define BUFFER_SIZE 2048
typedef struct {
char *mime_type;
const char *mime_type;
int demuxer_type;
} mime_struct_t;

View File

@ -89,7 +89,7 @@ void glAdjustAlignment(int stride) {
struct gl_name_map_struct {
GLint value;
char *name;
const char *name;
};
#undef MAP
@ -253,8 +253,8 @@ static void *setNull(const GLubyte *s) {
typedef struct {
void **funcptr;
char *extstr;
char *funcnames[7];
const char *extstr;
const char *funcnames[7];
} extfunc_desc_t;
static const extfunc_desc_t extfuncs[] = {
@ -914,7 +914,7 @@ static void add_scaler(int scaler, char **prog_pos, int *remain, char *texs,
}
static const struct {
char *name;
const char *name;
GLenum cur;
GLenum max;
} progstats[] = {

View File

@ -996,7 +996,7 @@ m_option_type_t m_option_type_subconfig = {
/* FIXME: snyc with img_format.h */
static struct {
char* name;
const char* name;
unsigned int fmt;
} mp_imgfmt_list[] = {
{"444p", IMGFMT_444P},
@ -1090,7 +1090,7 @@ m_option_type_t m_option_type_imgfmt = {
/* FIXME: snyc with af_format.h */
static struct {
char* name;
const char* name;
unsigned int fmt;
} mp_afmt_list[] = {
// SPECIAL

View File

@ -13,7 +13,7 @@ struct m_option;
/// Struct definition
typedef struct m_struct_st {
/// For error messages and debugging
char* name;
const char* name;
/// size of the whole struct
unsigned int size;
/// Pointer to a struct filled with the default settings

View File

@ -20,7 +20,7 @@ typedef int (*opt_test_f)(void *);
/** simple structure for defining the option name, type and storage location */
typedef struct opt_s
{
char * name; ///< string that identifies the option
const char * name; ///< string that identifies the option
int type; ///< option type as defined in subopt-helper.h
void * valp; ///< pointer to the mem where the value should be stored
opt_test_f test; ///< argument test func ( optional )