mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 08:12:17 +00:00
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:
parent
4a0f67ca35
commit
2308e045de
@ -154,7 +154,7 @@ static int init_audio(sh_audio_t *sh_audio, char *codecname, char *afm,
|
||||
}
|
||||
sh_audio->codec = NULL;
|
||||
while (1) {
|
||||
ad_functions_t *mpadec;
|
||||
const ad_functions_t *mpadec;
|
||||
int i;
|
||||
sh_audio->ad_driver = 0;
|
||||
// restore original fourcc:
|
||||
|
@ -75,7 +75,7 @@ typedef struct sh_audio {
|
||||
int a_out_buffer_size;
|
||||
// void* audio_out; // the audio_out handle, used for this audio stream
|
||||
struct af_stream *afilter; // the audio filter stream
|
||||
struct ad_functions *ad_driver;
|
||||
const struct ad_functions *ad_driver;
|
||||
#ifdef CONFIG_DYNAMIC_PLUGINS
|
||||
void *dec_handle;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user