[MPlayer-cvslog] r27089 - trunk/libmpdemux/demuxer.c
reimar
subversion at mplayerhq.hu
Mon Jun 16 17:53:28 CEST 2008
Author: reimar
Date: Mon Jun 16 17:53:28 2008
New Revision: 27089
Log:
Support NULL name parameter for demuxer_add_chapter.
Patch by Anton Khirnov [wyskas gmail com]
Modified:
trunk/libmpdemux/demuxer.c
Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c (original)
+++ trunk/libmpdemux/demuxer.c Mon Jun 16 17:53:28 2008
@@ -1295,7 +1295,7 @@ int demuxer_add_chapter(demuxer_t *demux
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++;
}
More information about the MPlayer-cvslog
mailing list