diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-06-16 15:53:28 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-06-16 15:53:28 +0000 |
commit | 80141566b6cac7bce1955b7d9a4dda3f5b9faca1 (patch) | |
tree | 16d2c61f1431e8c5b8f1dc475d2cc5031f026471 | |
parent | b01b38461676461719c84a5e236fbb122c2cdcc2 (diff) |
Support NULL name parameter for demuxer_add_chapter.
Patch by Anton Khirnov [wyskas gmail com]
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27089 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/demuxer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demuxer.c b/libmpdemux/demuxer.c index 9999cf27c7..7ed5e02ca8 100644 --- a/libmpdemux/demuxer.c +++ b/libmpdemux/demuxer.c @@ -1295,7 +1295,7 @@ int demuxer_add_chapter(demuxer_t *demuxer, const char *name, uint64_t start, 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++; } |