changeset 25207:21d672c608ef

auto_open_streams should have const type, fix also the places where it is used
author reimar
date Sat, 01 Dec 2007 16:31:49 +0000
parents 2d6575d7bc49
children 1b3dabc8c2b8
files stream/stream.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream.c	Sat Dec 01 15:12:05 2007 +0000
+++ b/stream/stream.c	Sat Dec 01 16:31:49 2007 +0000
@@ -88,7 +88,7 @@
 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 @@
   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_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;