# HG changeset patch # User reimar # Date 1200239244 0 # Node ID f0d45f8866e863c78ac15b9e285dbb6a1f40a6fa # Parent aab0c3e384768ad5e4e18d15a05ae97b9505e6fb First step towards making all demuxer_desc_t const diff -r aab0c3e38476 -r f0d45f8866e8 libmpdemux/demuxer.c --- 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; diff -r aab0c3e38476 -r f0d45f8866e8 libmpdemux/demuxer.h --- 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;