[MPlayer-cvslog] r25235 - trunk/stream/stream.c

reimar subversion at mplayerhq.hu
Sat Dec 1 17:31:50 CET 2007


Author: reimar
Date: Sat Dec  1 17:31:49 2007
New Revision: 25235

Log:
auto_open_streams should have const type, fix also the places where it is used


Modified:
   trunk/stream/stream.c

Modified: trunk/stream/stream.c
==============================================================================
--- trunk/stream/stream.c	(original)
+++ trunk/stream/stream.c	Sat Dec  1 17:31:49 2007
@@ -88,7 +88,7 @@ extern stream_info_t stream_info_file;
 extern stream_info_t stream_info_dvd;
 #endif
 
-static stream_info_t* auto_open_streams[] = {
+static const stream_info_t* auto_open_streams[] = {
 #ifdef HAVE_VCD
   &stream_info_vcd,
 #endif
@@ -144,7 +144,7 @@ static stream_info_t* auto_open_streams[
   NULL
 };
 
-stream_t* open_stream_plugin(stream_info_t* sinfo,char* filename,int mode,
+stream_t* open_stream_plugin(const stream_info_t* sinfo,char* filename,int mode,
 			     char** options, int* file_format, int* ret,
 			     char** redirected_url) {
   void* arg = NULL;
@@ -213,7 +213,7 @@ stream_t* open_stream_plugin(stream_info
 
 stream_t* open_stream_full(char* filename,int mode, char** options, int* file_format) {
   int i,j,l,r;
-  stream_info_t* sinfo;
+  const stream_info_t* sinfo;
   stream_t* s;
   char *redirected_url = NULL;
 



More information about the MPlayer-cvslog mailing list