mirror of https://github.com/mpv-player/mpv
command, mplayer: free return value of demuxer_stream_lang()
This commit is contained in:
parent
a425777b96
commit
c7be71ae71
|
@ -2686,6 +2686,7 @@ static void show_tracks_on_osd(MPContext *mpctx)
|
|||
char *lang = demuxer_stream_lang(mpctx->demuxer, sh);
|
||||
if (lang)
|
||||
res = talloc_asprintf_append(res, "(%s) ", lang);
|
||||
talloc_free(lang);
|
||||
if (selected)
|
||||
res = talloc_asprintf_append(res, "<");
|
||||
res = talloc_asprintf_append(res, "\n");
|
||||
|
|
|
@ -404,6 +404,7 @@ static void print_stream(struct MPContext *mpctx, struct sh_stream *s)
|
|||
char *lang = demuxer_stream_lang(mpctx->demuxer, s);
|
||||
if (lang)
|
||||
mp_msg(MSGT_CPLAYER, MSGL_INFO, " --%s=%s", langopt, lang);
|
||||
talloc_free(lang);
|
||||
if (s->default_track)
|
||||
mp_msg(MSGT_CPLAYER, MSGL_INFO, " (*)");
|
||||
if (s->title)
|
||||
|
|
Loading…
Reference in New Issue