1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-13 18:45:25 +00:00

The suboption parser now takes a const options list, so mark them all const.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29628 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-09-02 11:33:37 +00:00
parent 46a0ddd36e
commit 790e41cf8f
7 changed files with 7 additions and 7 deletions

View File

@ -326,7 +326,7 @@ static int init(int rate_hz, int channels, int format, int flags)
snd_pcm_uframes_t chunk_size;
snd_pcm_uframes_t bufsize;
snd_pcm_uframes_t boundary;
opt_t subopts[] = {
const opt_t subopts[] = {
{"block", OPT_ARG_BOOL, &block, NULL},
{"device", OPT_ARG_STR, &device, (opt_test_f)str_maxlen},
{NULL}

View File

@ -146,7 +146,7 @@ static int init(int rate, int channels, int format, int flags)
int nDartSamples = DEFAULT_DART_SAMPLES;
int nBytesPerSample;
opt_t subopts[] = {
const opt_t subopts[] = {
{"share", OPT_ARG_BOOL, &fShare, NULL},
{"bufsize", OPT_ARG_INT, &nDartSamples, (opt_test_f)int_non_neg},
{NULL}

View File

@ -223,7 +223,7 @@ static int InitDirectSound(void)
HRESULT (WINAPI *OurDirectSoundCreate)(LPGUID, LPDIRECTSOUND *, LPUNKNOWN);
HRESULT (WINAPI *OurDirectSoundEnumerate)(LPDSENUMCALLBACKA, LPVOID);
int device_index=0;
opt_t subopts[] = {
const opt_t subopts[] = {
{"device", OPT_ARG_INT, &device_num,NULL},
{NULL}
};

View File

@ -208,7 +208,7 @@ static int init(int rate, int channels, int format, int flags) {
char *port_name = NULL;
char *client_name = NULL;
int autostart = 0;
opt_t subopts[] = {
const opt_t subopts[] = {
{"port", OPT_ARG_MSTRZ, &port_name, NULL},
{"name", OPT_ARG_MSTRZ, &client_name, NULL},
{"estimate", OPT_ARG_BOOL, &estimate, NULL},

View File

@ -158,7 +158,7 @@ static int preinit(const char *arg)
int card = -1;
char *ao_file = NULL;
opt_t subopts[] = {
const opt_t subopts[] = {
{"card", OPT_ARG_INT, &card, NULL},
{"file", OPT_ARG_MSTRZ, &ao_file, NULL},
{NULL}

View File

@ -106,7 +106,7 @@ static int init(int rate, int channels, int format, int flags) {
ALCint freq = 0;
ALCint attribs[] = {ALC_FREQUENCY, rate, 0, 0};
int i;
opt_t subopts[] = {
const opt_t subopts[] = {
{NULL}
};
if (subopt_parse(ao_subdevice, subopts) != 0) {

View File

@ -94,7 +94,7 @@ static int control(int cmd,void *arg){
// return: 1=success 0=fail
static int init(int rate,int channels,int format,int flags){
int bits;
opt_t subopts[] = {
const opt_t subopts[] = {
{"waveheader", OPT_ARG_BOOL, &ao_pcm_waveheader, NULL},
{"file", OPT_ARG_MSTRZ, &ao_outputfilename, NULL},
{"fast", OPT_ARG_BOOL, &fast, NULL},