[MPlayer-cvslog] r25734 - in trunk/libmpdemux: demuxer.c demuxer.h
reimar
subversion at mplayerhq.hu
Sun Jan 13 16:47:24 CET 2008
Author: reimar
Date: Sun Jan 13 16:47:24 2008
New Revision: 25734
Log:
First step towards making all demuxer_desc_t const
Modified:
trunk/libmpdemux/demuxer.c
trunk/libmpdemux/demuxer.h
Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c (original)
+++ trunk/libmpdemux/demuxer.c Sun Jan 13 16:47:24 2008
@@ -74,7 +74,7 @@ extern demuxer_desc_t demuxer_desc_lavf_
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(struc
* @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;
Modified: trunk/libmpdemux/demuxer.h
==============================================================================
--- trunk/libmpdemux/demuxer.h (original)
+++ trunk/libmpdemux/demuxer.h Sun Jan 13 16:47:24 2008
@@ -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;
More information about the MPlayer-cvslog
mailing list