Mercurial > mplayer.hg
changeset 25706:f0d45f8866e8
First step towards making all demuxer_desc_t const
author | reimar |
---|---|
date | Sun, 13 Jan 2008 15:47:24 +0000 |
parents | aab0c3e38476 |
children | d4fe6e23283e |
files | libmpdemux/demuxer.c libmpdemux/demuxer.h |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demuxer.c Sun Jan 13 15:41:21 2008 +0000 +++ b/libmpdemux/demuxer.c Sun Jan 13 15:47:24 2008 +0000 @@ -74,7 +74,7 @@ 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 @@ * @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 @@ sh_video_t *sh_video=NULL; -demuxer_desc_t *demuxer_desc; +const demuxer_desc_t *demuxer_desc; int fformat = 0; int i;
--- a/libmpdemux/demuxer.h Sun Jan 13 15:41:21 2008 +0000 +++ b/libmpdemux/demuxer.h Sun Jan 13 15:47:24 2008 +0000 @@ -183,7 +183,7 @@ } 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;