summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-07-03 20:04:21 +0300
committerUoti Urpala <uau@mplayer2.org>2011-07-03 20:04:21 +0300
commitc5364305bec6dff4566b988157b93d3d171465e3 (patch)
tree13e28a781e2e1f4699b4caffff0d61e2ef079187 /mplayer.c
parent774bb252aa0bda6a6ef927cd9287b0a6c01da0e6 (diff)
downloadmpv-c5364305bec6dff4566b988157b93d3d171465e3.tar.bz2
mpv-c5364305bec6dff4566b988157b93d3d171465e3.tar.xz
commands: change property mechanism to use talloc strings
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 90cf15c8b3..09ff374275 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -3308,7 +3308,7 @@ char *chapter_display_name(struct MPContext *mpctx, int chapter)
{
if (!mpctx->chapters || !mpctx->sh_video)
return demuxer_chapter_display_name(mpctx->demuxer, chapter);
- return strdup(mpctx->chapters[chapter].name);
+ return talloc_strdup(NULL, mpctx->chapters[chapter].name);
}
int seek_chapter(struct MPContext *mpctx, int chapter, double *seek_pts,