# HG changeset patch # User reimar # Date 1278016902 0 # Node ID 7f1c8212e3cf8526f03f7b004425402f08104ce1 # Parent b07ed23358afa3ea43d57295f6dca45d8dfb2706 Add some const, the ad_functions structs are in rodata. diff -r b07ed23358af -r 7f1c8212e3cf libmpcodecs/dec_audio.c --- a/libmpcodecs/dec_audio.c Thu Jul 01 20:04:38 2010 +0000 +++ b/libmpcodecs/dec_audio.c Thu Jul 01 20:41:42 2010 +0000 @@ -151,7 +151,7 @@ } 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 -r b07ed23358af -r 7f1c8212e3cf libmpdemux/stheader.h --- a/libmpdemux/stheader.h Thu Jul 01 20:04:38 2010 +0000 +++ b/libmpdemux/stheader.h Thu Jul 01 20:41:42 2010 +0000 @@ -73,7 +73,7 @@ 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