Mercurial > mplayer.hg
changeset 27057:42332b47d6aa
Support NULL name parameter for demuxer_add_chapter.
Patch by Anton Khirnov [wyskas gmail com]
author | reimar |
---|---|
date | Mon, 16 Jun 2008 15:53:28 +0000 |
parents | ad1444d3ff26 |
children | 2f4343465df1 |
files | libmpdemux/demuxer.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demuxer.c Mon Jun 16 12:54:28 2008 +0000 +++ b/libmpdemux/demuxer.c Mon Jun 16 15:53:28 2008 +0000 @@ -1295,7 +1295,7 @@ demuxer->chapters[demuxer->num_chapters].start = start; demuxer->chapters[demuxer->num_chapters].end = end; - demuxer->chapters[demuxer->num_chapters].name = strdup(name); + demuxer->chapters[demuxer->num_chapters].name = strdup(name ? name : MSGTR_Unknown); return demuxer->num_chapters++; }