mirror of
https://github.com/mpv-player/mpv
synced 2025-04-23 12:59:51 +02:00
Mark all stream_info_t as const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25239 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6e6214052c
commit
cd3d3369e1
stream
asf_streaming.chttp.cpnm.cstream.cstream_cdda.cstream_cue.cstream_dvb.cstream_dvd.cstream_dvdnav.cstream_file.cstream_ftp.cstream_livedotcom.cstream_mf.cstream_nemesi.cstream_netstream.cstream_null.cstream_pvr.cstream_radio.cstream_rtp.cstream_rtsp.cstream_smb.cstream_tv.cstream_udp.cstream_vcd.cstream_vstream.c
@ -870,7 +870,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
|
|||||||
return STREAM_OK;
|
return STREAM_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_asf = {
|
const stream_info_t stream_info_asf = {
|
||||||
"mms and mms over http streaming",
|
"mms and mms over http streaming",
|
||||||
"null",
|
"null",
|
||||||
"Bertrand, Reimar Doeffinger, Albeu",
|
"Bertrand, Reimar Doeffinger, Albeu",
|
||||||
|
@ -954,7 +954,7 @@ static int open_s2(stream_t *stream,int mode, void* opts, int* file_format) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
stream_info_t stream_info_http1 = {
|
const stream_info_t stream_info_http1 = {
|
||||||
"http streaming",
|
"http streaming",
|
||||||
"null",
|
"null",
|
||||||
"Bertrand, Albeau, Reimar Doeffinger, Arpi?",
|
"Bertrand, Albeau, Reimar Doeffinger, Arpi?",
|
||||||
@ -965,7 +965,7 @@ stream_info_t stream_info_http1 = {
|
|||||||
0 // Urls are an option string
|
0 // Urls are an option string
|
||||||
};
|
};
|
||||||
|
|
||||||
stream_info_t stream_info_http2 = {
|
const stream_info_t stream_info_http2 = {
|
||||||
"http streaming",
|
"http streaming",
|
||||||
"null",
|
"null",
|
||||||
"Bertrand, Albeu, Arpi? who?",
|
"Bertrand, Albeu, Arpi? who?",
|
||||||
|
@ -897,7 +897,7 @@ fail:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
stream_info_t stream_info_pnm = {
|
const stream_info_t stream_info_pnm = {
|
||||||
"RealNetworks pnm",
|
"RealNetworks pnm",
|
||||||
"pnm",
|
"pnm",
|
||||||
"Arpi, xine team",
|
"Arpi, xine team",
|
||||||
|
@ -36,57 +36,57 @@
|
|||||||
//#include "vcd_read_bincue.h"
|
//#include "vcd_read_bincue.h"
|
||||||
|
|
||||||
#ifdef HAVE_VCD
|
#ifdef HAVE_VCD
|
||||||
extern stream_info_t stream_info_vcd;
|
extern const stream_info_t stream_info_vcd;
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_CDDA
|
#ifdef HAVE_CDDA
|
||||||
extern stream_info_t stream_info_cdda;
|
extern const stream_info_t stream_info_cdda;
|
||||||
#endif
|
#endif
|
||||||
#ifdef MPLAYER_NETWORK
|
#ifdef MPLAYER_NETWORK
|
||||||
extern stream_info_t stream_info_netstream;
|
extern const stream_info_t stream_info_netstream;
|
||||||
extern stream_info_t stream_info_pnm;
|
extern const stream_info_t stream_info_pnm;
|
||||||
extern stream_info_t stream_info_asf;
|
extern const stream_info_t stream_info_asf;
|
||||||
extern stream_info_t stream_info_rtsp;
|
extern const stream_info_t stream_info_rtsp;
|
||||||
extern stream_info_t stream_info_rtp;
|
extern const stream_info_t stream_info_rtp;
|
||||||
extern stream_info_t stream_info_udp;
|
extern const stream_info_t stream_info_udp;
|
||||||
extern stream_info_t stream_info_http1;
|
extern const stream_info_t stream_info_http1;
|
||||||
extern stream_info_t stream_info_http2;
|
extern const stream_info_t stream_info_http2;
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAS_DVBIN_SUPPORT
|
#ifdef HAS_DVBIN_SUPPORT
|
||||||
extern stream_info_t stream_info_dvb;
|
extern const stream_info_t stream_info_dvb;
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_TV
|
#ifdef USE_TV
|
||||||
extern stream_info_t stream_info_tv;
|
extern const stream_info_t stream_info_tv;
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_RADIO
|
#ifdef USE_RADIO
|
||||||
extern stream_info_t stream_info_radio;
|
extern const stream_info_t stream_info_radio;
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_PVR
|
#ifdef HAVE_PVR
|
||||||
extern stream_info_t stream_info_pvr;
|
extern const stream_info_t stream_info_pvr;
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_FTP
|
#ifdef HAVE_FTP
|
||||||
extern stream_info_t stream_info_ftp;
|
extern const stream_info_t stream_info_ftp;
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_VSTREAM
|
#ifdef HAVE_VSTREAM
|
||||||
extern stream_info_t stream_info_vstream;
|
extern const stream_info_t stream_info_vstream;
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_DVDNAV
|
#ifdef USE_DVDNAV
|
||||||
extern stream_info_t stream_info_dvdnav;
|
extern const stream_info_t stream_info_dvdnav;
|
||||||
#endif
|
#endif
|
||||||
#ifdef LIBSMBCLIENT
|
#ifdef LIBSMBCLIENT
|
||||||
extern stream_info_t stream_info_smb;
|
extern const stream_info_t stream_info_smb;
|
||||||
#endif
|
#endif
|
||||||
#ifdef STREAMING_LIVE555
|
#ifdef STREAMING_LIVE555
|
||||||
extern stream_info_t stream_info_sdp;
|
extern const stream_info_t stream_info_sdp;
|
||||||
extern stream_info_t stream_info_rtsp_sip;
|
extern const stream_info_t stream_info_rtsp_sip;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern stream_info_t stream_info_cue;
|
extern const stream_info_t stream_info_cue;
|
||||||
extern stream_info_t stream_info_null;
|
extern const stream_info_t stream_info_null;
|
||||||
extern stream_info_t stream_info_mf;
|
extern const stream_info_t stream_info_mf;
|
||||||
extern stream_info_t stream_info_file;
|
extern const stream_info_t stream_info_file;
|
||||||
#ifdef USE_DVDREAD
|
#ifdef USE_DVDREAD
|
||||||
extern stream_info_t stream_info_ifo;
|
extern const stream_info_t stream_info_ifo;
|
||||||
extern stream_info_t stream_info_dvd;
|
extern const stream_info_t stream_info_dvd;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const stream_info_t* const auto_open_streams[] = {
|
static const stream_info_t* const auto_open_streams[] = {
|
||||||
|
@ -382,7 +382,7 @@ static void close_cdda(stream_t* s) {
|
|||||||
free(p);
|
free(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_cdda = {
|
const stream_info_t stream_info_cdda = {
|
||||||
"CDDA",
|
"CDDA",
|
||||||
"cdda",
|
"cdda",
|
||||||
"Albeu",
|
"Albeu",
|
||||||
|
@ -591,7 +591,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
|
|||||||
return STREAM_OK;
|
return STREAM_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_cue = {
|
const stream_info_t stream_info_cue = {
|
||||||
"CUE track",
|
"CUE track",
|
||||||
"cue",
|
"cue",
|
||||||
"Albeu",
|
"Albeu",
|
||||||
|
@ -840,7 +840,7 @@ dvb_config_t *dvb_get_config(void)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
stream_info_t stream_info_dvb = {
|
const stream_info_t stream_info_dvb = {
|
||||||
"Dvb Input",
|
"Dvb Input",
|
||||||
"dvbin",
|
"dvbin",
|
||||||
"Nico",
|
"Nico",
|
||||||
|
@ -1110,7 +1110,7 @@ ifo_stream_open (stream_t *stream, int mode, void *opts, int *file_format)
|
|||||||
return open_s(stream, mode, dvd_priv, file_format);
|
return open_s(stream, mode, dvd_priv, file_format);
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_dvd = {
|
const stream_info_t stream_info_dvd = {
|
||||||
"DVD stream",
|
"DVD stream",
|
||||||
"null",
|
"null",
|
||||||
"",
|
"",
|
||||||
@ -1121,7 +1121,7 @@ stream_info_t stream_info_dvd = {
|
|||||||
1 // Urls are an option string
|
1 // Urls are an option string
|
||||||
};
|
};
|
||||||
|
|
||||||
stream_info_t stream_info_ifo = {
|
const stream_info_t stream_info_ifo = {
|
||||||
"DVD IFO input",
|
"DVD IFO input",
|
||||||
"ifo",
|
"ifo",
|
||||||
"Benjamin Zores",
|
"Benjamin Zores",
|
||||||
|
@ -725,7 +725,7 @@ void mp_dvdnav_get_highlight (stream_t *stream, nav_highlight_t *hl) {
|
|||||||
hl->ey = hlev.ey;
|
hl->ey = hlev.ey;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_dvdnav = {
|
const stream_info_t stream_info_dvdnav = {
|
||||||
"DVDNAV stream",
|
"DVDNAV stream",
|
||||||
"null",
|
"null",
|
||||||
"",
|
"",
|
||||||
|
@ -175,7 +175,7 @@ static int open_f(stream_t *stream,int mode, void* opts, int* file_format) {
|
|||||||
return STREAM_OK;
|
return STREAM_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_file = {
|
const stream_info_t stream_info_file = {
|
||||||
"File",
|
"File",
|
||||||
"file",
|
"file",
|
||||||
"Albeu",
|
"Albeu",
|
||||||
|
@ -458,7 +458,7 @@ static int open_f(stream_t *stream,int mode, void* opts, int* file_format) {
|
|||||||
return STREAM_OK;
|
return STREAM_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_ftp = {
|
const stream_info_t stream_info_ftp = {
|
||||||
"File Transfer Protocol",
|
"File Transfer Protocol",
|
||||||
"ftp",
|
"ftp",
|
||||||
"Albeu",
|
"Albeu",
|
||||||
|
@ -96,7 +96,7 @@ static int open_live_sdp(stream_t *stream,int mode, void* opts, int* file_format
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
stream_info_t stream_info_rtsp_sip = {
|
const stream_info_t stream_info_rtsp_sip = {
|
||||||
"standard RTSP and SIP",
|
"standard RTSP and SIP",
|
||||||
"RTSP and SIP",
|
"RTSP and SIP",
|
||||||
"Ross Finlayson",
|
"Ross Finlayson",
|
||||||
@ -107,7 +107,7 @@ stream_info_t stream_info_rtsp_sip = {
|
|||||||
0 // Urls are an option string
|
0 // Urls are an option string
|
||||||
};
|
};
|
||||||
|
|
||||||
stream_info_t stream_info_sdp = {
|
const stream_info_t stream_info_sdp = {
|
||||||
"SDP stream descriptor",
|
"SDP stream descriptor",
|
||||||
"SDP",
|
"SDP",
|
||||||
"Ross Finlayson",
|
"Ross Finlayson",
|
||||||
|
@ -34,7 +34,7 @@ mf_stream_open (stream_t *stream, int mode, void *opts, int *file_format)
|
|||||||
return STREAM_OK;
|
return STREAM_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_mf = {
|
const stream_info_t stream_info_mf = {
|
||||||
"Multiple files input",
|
"Multiple files input",
|
||||||
"mf",
|
"mf",
|
||||||
"Benjamin Zores, Albeu",
|
"Benjamin Zores, Albeu",
|
||||||
|
@ -64,7 +64,7 @@ static int rtsp_streaming_open (stream_t *stream, int mode, void *opts,
|
|||||||
return STREAM_OK;
|
return STREAM_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_rtsp = {
|
const stream_info_t stream_info_rtsp = {
|
||||||
"RTSP streaming",
|
"RTSP streaming",
|
||||||
"rtsp",
|
"rtsp",
|
||||||
"Alessandro Molina",
|
"Alessandro Molina",
|
||||||
|
@ -296,7 +296,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
|
|||||||
return STREAM_ERROR;
|
return STREAM_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_netstream = {
|
const stream_info_t stream_info_netstream = {
|
||||||
"Net stream",
|
"Net stream",
|
||||||
"netstream",
|
"netstream",
|
||||||
"Albeu",
|
"Albeu",
|
||||||
|
@ -13,7 +13,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
stream_info_t stream_info_null = {
|
const stream_info_t stream_info_null = {
|
||||||
"Null stream",
|
"Null stream",
|
||||||
"null",
|
"null",
|
||||||
"Albeu",
|
"Albeu",
|
||||||
|
@ -1766,7 +1766,7 @@ pvr_force_freq_step (stream_t *stream, int step)
|
|||||||
return force_freq_step (pvr, step);
|
return force_freq_step (pvr, step);
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_pvr = {
|
const stream_info_t stream_info_pvr = {
|
||||||
"V4L2 MPEG Input (a.k.a PVR)",
|
"V4L2 MPEG Input (a.k.a PVR)",
|
||||||
"pvr",
|
"pvr",
|
||||||
"Benjamin Zores",
|
"Benjamin Zores",
|
||||||
|
@ -1252,7 +1252,7 @@ static void close_s(struct stream_st * stream){
|
|||||||
stream->priv=NULL;
|
stream->priv=NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_radio = {
|
const stream_info_t stream_info_radio = {
|
||||||
"Radio stream",
|
"Radio stream",
|
||||||
"Radio",
|
"Radio",
|
||||||
"Vladimir Voroshilov",
|
"Vladimir Voroshilov",
|
||||||
|
@ -103,7 +103,7 @@ rtp_stream_open (stream_t *stream, int mode, void *opts, int *file_format)
|
|||||||
return STREAM_OK;
|
return STREAM_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_rtp = {
|
const stream_info_t stream_info_rtp = {
|
||||||
"MPEG over RTP streaming",
|
"MPEG over RTP streaming",
|
||||||
"rtp",
|
"rtp",
|
||||||
"Dave Chapman, Benjamin Zores",
|
"Dave Chapman, Benjamin Zores",
|
||||||
|
@ -167,7 +167,7 @@ rtsp_streaming_open (stream_t *stream, int mode, void *opts, int *file_format)
|
|||||||
return STREAM_OK;
|
return STREAM_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_rtsp = {
|
const stream_info_t stream_info_rtsp = {
|
||||||
"RTSP streaming",
|
"RTSP streaming",
|
||||||
"rtsp",
|
"rtsp",
|
||||||
"Benjamin Zores, Roberto Togni",
|
"Benjamin Zores, Roberto Togni",
|
||||||
|
@ -153,7 +153,7 @@ static int open_f (stream_t *stream, int mode, void *opts, int* file_format) {
|
|||||||
return STREAM_OK;
|
return STREAM_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_smb = {
|
const stream_info_t stream_info_smb = {
|
||||||
"Server Message Block",
|
"Server Message Block",
|
||||||
"smb",
|
"smb",
|
||||||
"M. Tourne",
|
"M. Tourne",
|
||||||
|
@ -113,7 +113,7 @@ tv_stream_open (stream_t *stream, int mode, void *opts, int *file_format)
|
|||||||
return STREAM_OK;
|
return STREAM_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_tv = {
|
const stream_info_t stream_info_tv = {
|
||||||
"TV Input",
|
"TV Input",
|
||||||
"tv",
|
"tv",
|
||||||
"Benjamin Zores, Albeu",
|
"Benjamin Zores, Albeu",
|
||||||
|
@ -95,7 +95,7 @@ udp_stream_open (stream_t *stream, int mode, void *opts, int *file_format)
|
|||||||
return STREAM_OK;
|
return STREAM_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_udp = {
|
const stream_info_t stream_info_udp = {
|
||||||
"MPEG over UDP streaming",
|
"MPEG over UDP streaming",
|
||||||
"udp",
|
"udp",
|
||||||
"Dave Chapman, Benjamin Zores",
|
"Dave Chapman, Benjamin Zores",
|
||||||
|
@ -176,7 +176,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
|
|||||||
return STREAM_OK;
|
return STREAM_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_vcd = {
|
const stream_info_t stream_info_vcd = {
|
||||||
"Video CD",
|
"Video CD",
|
||||||
"vcd",
|
"vcd",
|
||||||
"Albeu",
|
"Albeu",
|
||||||
|
@ -167,7 +167,7 @@ static int open_s(stream_t *stream, int mode, void* opts, int* file_format) {
|
|||||||
return STREAM_OK;
|
return STREAM_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_info_t stream_info_vstream = {
|
const stream_info_t stream_info_vstream = {
|
||||||
"vstream client",
|
"vstream client",
|
||||||
"vstream",
|
"vstream",
|
||||||
"Joey",
|
"Joey",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user