cleanup: Add const qualifiers for struct ad_functions pointers

The ad_functions structs are in rodata, mark some pointers to them
const.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31606 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-07-01 20:41:42 +00:00 committed by Uoti Urpala
parent 4a0f67ca35
commit 2308e045de
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ static int init_audio(sh_audio_t *sh_audio, char *codecname, char *afm,
} }
sh_audio->codec = NULL; sh_audio->codec = NULL;
while (1) { while (1) {
ad_functions_t *mpadec; const ad_functions_t *mpadec;
int i; int i;
sh_audio->ad_driver = 0; sh_audio->ad_driver = 0;
// restore original fourcc: // restore original fourcc:

View File

@ -75,7 +75,7 @@ typedef struct sh_audio {
int a_out_buffer_size; int a_out_buffer_size;
// void* audio_out; // the audio_out handle, used for this audio stream // void* audio_out; // the audio_out handle, used for this audio stream
struct af_stream *afilter; // the audio filter stream struct af_stream *afilter; // the audio filter stream
struct ad_functions *ad_driver; const struct ad_functions *ad_driver;
#ifdef CONFIG_DYNAMIC_PLUGINS #ifdef CONFIG_DYNAMIC_PLUGINS
void *dec_handle; void *dec_handle;
#endif #endif