mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
Make m_option_t arrays referenced by cfg-common.h const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25269 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1f8007f0fd
commit
b8a403f124
14
cfg-common.h
14
cfg-common.h
@ -376,9 +376,9 @@ extern float a52_drc_level;
|
||||
|
||||
/* defined in libmpdemux: */
|
||||
extern int hr_mp3_seek;
|
||||
extern m_option_t demux_rawaudio_opts[];
|
||||
extern m_option_t demux_rawvideo_opts[];
|
||||
extern m_option_t cdda_opts[];
|
||||
extern const m_option_t demux_rawaudio_opts[];
|
||||
extern const m_option_t demux_rawvideo_opts[];
|
||||
extern const m_option_t cdda_opts[];
|
||||
|
||||
extern char* sub_stream;
|
||||
extern int demuxer_type, audio_demuxer_type, sub_demuxer_type;
|
||||
@ -504,10 +504,10 @@ const m_option_t pvropts_conf[]={
|
||||
|
||||
#ifdef HAS_DVBIN_SUPPORT
|
||||
#include "stream/dvbin.h"
|
||||
extern m_config_t dvbin_opts_conf[];
|
||||
extern const m_config_t dvbin_opts_conf[];
|
||||
#endif
|
||||
|
||||
extern m_option_t lavfdopts_conf[];
|
||||
extern const m_option_t lavfdopts_conf[];
|
||||
|
||||
extern int rtspStreamOverTCP;
|
||||
extern int rtsp_transport_tcp;
|
||||
@ -704,8 +704,8 @@ struct {
|
||||
};
|
||||
#endif /* WIN32 */
|
||||
|
||||
extern m_option_t lavc_decode_opts_conf[];
|
||||
extern m_option_t xvid_dec_opts[];
|
||||
extern const m_option_t lavc_decode_opts_conf[];
|
||||
extern const m_option_t xvid_dec_opts[];
|
||||
|
||||
int dvd_parse_chapter_range(const m_option_t*, const char*);
|
||||
|
||||
|
@ -91,7 +91,7 @@ static char *lavc_param_skip_frame_str = NULL;
|
||||
static int lavc_param_threads=1;
|
||||
static int lavc_param_bitexact=0;
|
||||
|
||||
m_option_t lavc_decode_opts_conf[]={
|
||||
const m_option_t lavc_decode_opts_conf[]={
|
||||
{"bug", &lavc_param_workaround_bugs, CONF_TYPE_INT, CONF_RANGE, -1, 999999, NULL},
|
||||
{"er", &lavc_param_error_resilience, CONF_TYPE_INT, CONF_RANGE, 0, 99, NULL},
|
||||
{"gray", &lavc_param_gray, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_PART, NULL},
|
||||
|
@ -47,7 +47,7 @@ static int chromadeblock = 0;
|
||||
static int lumadering = 0;
|
||||
static int chromadering = 0;
|
||||
|
||||
m_option_t xvid_dec_opts[] = {
|
||||
const m_option_t xvid_dec_opts[] = {
|
||||
{ "dr2", &do_dr2, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
||||
{ "nodr2", &do_dr2, CONF_TYPE_FLAG, 0, 1, 0, NULL},
|
||||
{ "filmeffect", &filmeffect, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
||||
|
@ -52,7 +52,7 @@ static char *opt_format;
|
||||
static char *opt_cryptokey;
|
||||
extern int ts_prog;
|
||||
|
||||
m_option_t lavfdopts_conf[] = {
|
||||
const m_option_t lavfdopts_conf[] = {
|
||||
{"probesize", &(opt_probesize), CONF_TYPE_INT, CONF_RANGE, 32, INT_MAX, NULL},
|
||||
{"format", &(opt_format), CONF_TYPE_STRING, 0, 0, 0, NULL},
|
||||
{"analyzeduration", &(opt_analyzeduration), CONF_TYPE_INT, CONF_RANGE, 0, INT_MAX, NULL},
|
||||
|
@ -20,7 +20,7 @@ static int samplesize = 2;
|
||||
static int bitrate = 0;
|
||||
static int format = 0x1; // Raw PCM
|
||||
|
||||
m_option_t demux_rawaudio_opts[] = {
|
||||
const m_option_t demux_rawaudio_opts[] = {
|
||||
{ "channels", &channels, CONF_TYPE_INT,CONF_RANGE,1,8, NULL },
|
||||
{ "rate", &samplerate, CONF_TYPE_INT,CONF_RANGE,1000,8*48000, NULL },
|
||||
{ "samplesize", &samplesize, CONF_TYPE_INT,CONF_RANGE,1,8, NULL },
|
||||
|
@ -22,7 +22,7 @@ static int height = 0;
|
||||
static float fps = 25;
|
||||
static int imgsize=0;
|
||||
|
||||
m_option_t demux_rawvideo_opts[] = {
|
||||
const m_option_t demux_rawvideo_opts[] = {
|
||||
// size:
|
||||
{ "w", &width, CONF_TYPE_INT,CONF_RANGE,1,8192, NULL },
|
||||
{ "h", &height, CONF_TYPE_INT,CONF_RANGE,1,8192, NULL },
|
||||
|
@ -73,7 +73,7 @@ static struct m_struct_st stream_opts = {
|
||||
};
|
||||
|
||||
/// We keep these options but now they set the defaults
|
||||
m_option_t cdda_opts[] = {
|
||||
const m_option_t cdda_opts[] = {
|
||||
{ "speed", &cdda_dflts.speed, CONF_TYPE_INT, M_OPT_RANGE,1,100, NULL },
|
||||
{ "paranoia", &cdda_dflts.paranoia_mode, CONF_TYPE_INT,M_OPT_RANGE, 0, 2, NULL },
|
||||
{ "generic-dev", &cdda_dflts.generic_dev, CONF_TYPE_STRING, 0, 0, 0, NULL },
|
||||
|
@ -98,7 +98,7 @@ static struct m_struct_st stream_opts = {
|
||||
|
||||
|
||||
|
||||
m_option_t dvbin_opts_conf[] = {
|
||||
const m_option_t dvbin_opts_conf[] = {
|
||||
{"prog", &stream_defaults.prog, CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
||||
{"card", &stream_defaults.card, CONF_TYPE_INT, M_OPT_RANGE, 1, 4, NULL},
|
||||
{"type", "DVB card type is autodetected and can't be overridden\n", CONF_TYPE_PRINT, CONF_NOCFG, 0 ,0, NULL},
|
||||
|
Loading…
Reference in New Issue
Block a user