diff options
-rw-r--r-- | mplayer.c | 2 | ||||
-rw-r--r-- | playlist.c | 6 | ||||
-rw-r--r-- | playlist.h | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -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 diff --git a/playlist.c b/playlist.c index 908baa9096..27877cb8b3 100644 --- a/playlist.c +++ b/playlist.c @@ -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); } diff --git a/playlist.h b/playlist.h index 8a74896d98..eb2ef9ed99 100644 --- a/playlist.h +++ b/playlist.h @@ -32,7 +32,7 @@ struct playlist_entry { char *filename; struct playlist_param *params; - int params_count; + int num_params; }; struct playlist { |