From 2308e045de854375513bc3be8c4a6d19030c2927 Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 1 Jul 2010 20:41:42 +0000 Subject: [PATCH] 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 --- libmpcodecs/dec_audio.c | 2 +- libmpdemux/stheader.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libmpcodecs/dec_audio.c b/libmpcodecs/dec_audio.c index 1a06b85921..218203272d 100644 --- a/libmpcodecs/dec_audio.c +++ b/libmpcodecs/dec_audio.c @@ -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: diff --git a/libmpdemux/stheader.h b/libmpdemux/stheader.h index b11b886ce1..08db01f025 100644 --- a/libmpdemux/stheader.h +++ b/libmpdemux/stheader.h @@ -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