mirror of https://github.com/mpv-player/mpv
auto_open_streams should have const type, fix also the places where it is used
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25235 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4cc00dc192
commit
5a046a6f4d
|
@ -88,7 +88,7 @@ extern stream_info_t stream_info_file;
|
||||||
extern stream_info_t stream_info_dvd;
|
extern stream_info_t stream_info_dvd;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static stream_info_t* auto_open_streams[] = {
|
static const stream_info_t* auto_open_streams[] = {
|
||||||
#ifdef HAVE_VCD
|
#ifdef HAVE_VCD
|
||||||
&stream_info_vcd,
|
&stream_info_vcd,
|
||||||
#endif
|
#endif
|
||||||
|
@ -144,7 +144,7 @@ static stream_info_t* auto_open_streams[] = {
|
||||||
NULL
|
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** options, int* file_format, int* ret,
|
||||||
char** redirected_url) {
|
char** redirected_url) {
|
||||||
void* arg = NULL;
|
void* arg = NULL;
|
||||||
|
@ -213,7 +213,7 @@ stream_t* open_stream_plugin(stream_info_t* sinfo,char* filename,int mode,
|
||||||
|
|
||||||
stream_t* open_stream_full(char* filename,int mode, char** options, int* file_format) {
|
stream_t* open_stream_full(char* filename,int mode, char** options, int* file_format) {
|
||||||
int i,j,l,r;
|
int i,j,l,r;
|
||||||
stream_info_t* sinfo;
|
const stream_info_t* sinfo;
|
||||||
stream_t* s;
|
stream_t* s;
|
||||||
char *redirected_url = NULL;
|
char *redirected_url = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue