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:
parent
914f281bcb
commit
b8901bf04d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user