playlist: rename params_count field to num_params for consistency

Other (newer) parts of mplayer use this convention, so don't introduce
new conventions.
This commit is contained in:
wm4 2012-08-04 02:17:40 +02:00
parent c7fe5f58e3
commit 714226b20c
3 changed files with 5 additions and 5 deletions

View File

@ -3607,7 +3607,7 @@ static void play_current_file(struct MPContext *mpctx)
assert(mpctx->playlist->current);
load_per_file_options(mpctx->mconfig, mpctx->playlist->current->params,
mpctx->playlist->current->params_count);
mpctx->playlist->current->num_params);
// We must enable getch2 here to be able to interrupt network connection
// or cache filling

View File

@ -32,14 +32,14 @@ struct playlist_entry *playlist_entry_new(const char *filename)
void playlist_entry_add_param(struct playlist_entry *e, bstr name, bstr value)
{
struct playlist_param p = {bstrdup(e, name), bstrdup(e, value)};
MP_TARRAY_APPEND(e, e->params, e->params_count, p);
MP_TARRAY_APPEND(e, e->params, e->num_params, p);
}
void playlist_entry_add_params(struct playlist_entry *e,
struct playlist_param *params,
int params_count)
int num_params)
{
for (int n = 0; n < params_count; n++)
for (int n = 0; n < num_params; n++)
playlist_entry_add_param(e, params[n].name, params[n].value);
}

View File

@ -32,7 +32,7 @@ struct playlist_entry {
char *filename;
struct playlist_param *params;
int params_count;
int num_params;
};
struct playlist {