diff options
author | wm4 <wm4@nowhere> | 2014-03-30 18:50:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-30 18:50:35 +0200 |
commit | 3fe6426ae0a6c2cd926d37e8b3c704963a573056 (patch) | |
tree | 3edf12a6c224701bdf9ee407c64b29f0206118cf /player | |
parent | 01f3e462900bbd6b9cfe5aa27f81c8847dca89d4 (diff) | |
download | mpv-3fe6426ae0a6c2cd926d37e8b3c704963a573056.tar.bz2 mpv-3fe6426ae0a6c2cd926d37e8b3c704963a573056.tar.xz |
command: minor simplification
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/player/command.c b/player/command.c index 13b0993f90..2807476f47 100644 --- a/player/command.c +++ b/player/command.c @@ -825,11 +825,6 @@ static int get_tag_entry(int item, int action, void *arg, void *ctx) static int tag_property(m_option_t *prop, int action, void *arg, struct mp_tags *tags) { - static const m_option_t key_type = - { - "tags", NULL, CONF_TYPE_STRING, 0, 0, 0, NULL - }; - switch (action) { case M_PROPERTY_GET: { char **slist = NULL; @@ -873,7 +868,9 @@ static int tag_property(m_option_t *prop, int action, void *arg, *(char **)ka->arg = talloc_strdup(NULL, meta); return M_PROPERTY_OK; case M_PROPERTY_GET_TYPE: - *(struct m_option *)ka->arg = key_type; + *(struct m_option *)ka->arg = (struct m_option){ + .type = CONF_TYPE_STRING, + }; return M_PROPERTY_OK; } } |