diff options
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c index 90adf003eb..ec4f2030bb 100644 --- a/player/command.c +++ b/player/command.c @@ -1571,7 +1571,7 @@ static int mp_property_channels(void *ctx, struct m_property *prop, return M_PROPERTY_UNAVAILABLE; switch (action) { case M_PROPERTY_PRINT: - *(char **) arg = mp_chmap_to_str(&fmt.channels); + *(char **) arg = talloc_strdup(NULL, mp_chmap_to_str(&fmt.channels)); return M_PROPERTY_OK; case M_PROPERTY_GET: *(int *)arg = fmt.channels.num; |