Mercurial > mplayer.hg
changeset 28824:f92673eb6683
Make audio_out_* structs const so they end up in .rodata
author | reimar |
---|---|
date | Fri, 06 Mar 2009 19:58:16 +0000 |
parents | 9a5b8c2ed6de |
children | f872face2b3a |
files | libao2/audio_out.c libao2/audio_out_internal.h |
diffstat | 2 files changed, 24 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/libao2/audio_out.c Fri Mar 06 19:43:12 2009 +0000 +++ b/libao2/audio_out.c Fri Mar 06 19:58:16 2009 +0000 @@ -31,29 +31,29 @@ ao_data_t ao_data={0,0,0,0,OUTBURST,-1,0}; char *ao_subdevice = NULL; -extern ao_functions_t audio_out_oss; -extern ao_functions_t audio_out_macosx; -extern ao_functions_t audio_out_arts; -extern ao_functions_t audio_out_esd; -extern ao_functions_t audio_out_pulse; -extern ao_functions_t audio_out_jack; -extern ao_functions_t audio_out_openal; -extern ao_functions_t audio_out_null; -extern ao_functions_t audio_out_alsa5; -extern ao_functions_t audio_out_alsa; -extern ao_functions_t audio_out_nas; -extern ao_functions_t audio_out_sdl; -extern ao_functions_t audio_out_sun; -extern ao_functions_t audio_out_sgi; -extern ao_functions_t audio_out_win32; -extern ao_functions_t audio_out_dsound; -extern ao_functions_t audio_out_dart; -extern ao_functions_t audio_out_dxr2; -extern ao_functions_t audio_out_ivtv; -extern ao_functions_t audio_out_v4l2; -extern ao_functions_t audio_out_mpegpes; -extern ao_functions_t audio_out_pcm; -extern ao_functions_t audio_out_pss; +extern const ao_functions_t audio_out_oss; +extern const ao_functions_t audio_out_macosx; +extern const ao_functions_t audio_out_arts; +extern const ao_functions_t audio_out_esd; +extern const ao_functions_t audio_out_pulse; +extern const ao_functions_t audio_out_jack; +extern const ao_functions_t audio_out_openal; +extern const ao_functions_t audio_out_null; +extern const ao_functions_t audio_out_alsa5; +extern const ao_functions_t audio_out_alsa; +extern const ao_functions_t audio_out_nas; +extern const ao_functions_t audio_out_sdl; +extern const ao_functions_t audio_out_sun; +extern const ao_functions_t audio_out_sgi; +extern const ao_functions_t audio_out_win32; +extern const ao_functions_t audio_out_dsound; +extern const ao_functions_t audio_out_dart; +extern const ao_functions_t audio_out_dxr2; +extern const ao_functions_t audio_out_ivtv; +extern const ao_functions_t audio_out_v4l2; +extern const ao_functions_t audio_out_mpegpes; +extern const ao_functions_t audio_out_pcm; +extern const ao_functions_t audio_out_pss; const ao_functions_t* const audio_out_drivers[] = {
--- a/libao2/audio_out_internal.h Fri Mar 06 19:43:12 2009 +0000 +++ b/libao2/audio_out_internal.h Fri Mar 06 19:58:16 2009 +0000 @@ -31,7 +31,7 @@ static void audio_pause(void); static void audio_resume(void); -#define LIBAO_EXTERN(x) ao_functions_t audio_out_##x =\ +#define LIBAO_EXTERN(x) const ao_functions_t audio_out_##x =\ {\ &info,\ control,\