First step towards making all demuxer_desc_t const

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25734 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-01-13 15:47:24 +00:00
parent f1df834442
commit df7c312313
2 changed files with 4 additions and 4 deletions

View File

@ -74,7 +74,7 @@ extern demuxer_desc_t demuxer_desc_lavf_preferred;
extern demuxer_desc_t demuxer_desc_aac;
extern demuxer_desc_t demuxer_desc_nut;
demuxer_desc_t* demuxer_list[] = {
const demuxer_desc_t* const demuxer_list[] = {
&demuxer_desc_rawaudio,
&demuxer_desc_rawvideo,
#ifdef USE_TV
@ -182,7 +182,7 @@ demux_stream_t* new_demuxer_stream(struct demuxer_st *demuxer,int id){
* @param file_format type of the demuxer
* @return structure for the demuxer, NULL if not found
*/
static demuxer_desc_t* get_demuxer_desc_from_type(int file_format)
static const demuxer_desc_t* get_demuxer_desc_from_type(int file_format)
{
int i;
@ -701,7 +701,7 @@ demuxer_t *demuxer=NULL;
sh_video_t *sh_video=NULL;
demuxer_desc_t *demuxer_desc;
const demuxer_desc_t *demuxer_desc;
int fformat = 0;
int i;

View File

@ -183,7 +183,7 @@ typedef struct demux_attachment_s
} demux_attachment_t;
typedef struct demuxer_st {
demuxer_desc_t *desc; ///< Demuxer description structure
const demuxer_desc_t *desc; ///< Demuxer description structure
off_t filepos; // input stream current pos.
off_t movi_start;
off_t movi_end;