[MPlayer-cvslog] r31606 - in trunk: libmpcodecs/dec_audio.c libmpdemux/stheader.h
reimar
subversion at mplayerhq.hu
Thu Jul 1 22:41:42 CEST 2010
Author: reimar
Date: Thu Jul 1 22:41:42 2010
New Revision: 31606
Log:
Add some const, the ad_functions structs are in rodata.
Modified:
trunk/libmpcodecs/dec_audio.c
trunk/libmpdemux/stheader.h
Modified: trunk/libmpcodecs/dec_audio.c
==============================================================================
--- trunk/libmpcodecs/dec_audio.c Thu Jul 1 22:04:38 2010 (r31605)
+++ trunk/libmpcodecs/dec_audio.c Thu Jul 1 22:41:42 2010 (r31606)
@@ -151,7 +151,7 @@ static int init_audio(sh_audio_t *sh_aud
}
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:
Modified: trunk/libmpdemux/stheader.h
==============================================================================
--- trunk/libmpdemux/stheader.h Thu Jul 1 22:04:38 2010 (r31605)
+++ trunk/libmpdemux/stheader.h Thu Jul 1 22:41:42 2010 (r31606)
@@ -73,7 +73,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
More information about the MPlayer-cvslog
mailing list