changeset 31540:7f1c8212e3cf

Add some const, the ad_functions structs are in rodata.
author reimar
date Thu, 01 Jul 2010 20:41:42 +0000
parents b07ed23358af
children 0ccd18ec15c3
files libmpcodecs/dec_audio.c libmpdemux/stheader.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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:
--- 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