0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

command: fix metadata property

This crashed when retrieving the raw property value. Oops.
This commit is contained in:
wm4 2014-02-12 21:59:26 +01:00
parent 914f281bcb
commit b8901bf04d

View File

@ -707,8 +707,8 @@ static int tag_property(m_option_t *prop, int action, void *arg,
char **slist = NULL; char **slist = NULL;
int num = 0; int num = 0;
for (int n = 0; n < tags->num_keys; n++) { for (int n = 0; n < tags->num_keys; n++) {
MP_TARRAY_APPEND(NULL, slist, num, tags->keys[n]); MP_TARRAY_APPEND(NULL, slist, num, talloc_strdup(NULL, tags->keys[n]));
MP_TARRAY_APPEND(NULL, slist, num, tags->values[n]); MP_TARRAY_APPEND(NULL, slist, num, talloc_strdup(NULL, tags->values[n]));
} }
MP_TARRAY_APPEND(NULL, slist, num, NULL); MP_TARRAY_APPEND(NULL, slist, num, NULL);
*(char ***)arg = slist; *(char ***)arg = slist;