[MPlayer-dev-eng] [PATCH] more informations about the chapters
Nico Sabbi
nicola_sabbi at fastwebnet.it
Mon Aug 21 21:53:29 CEST 2006
Nico Sabbi wrote:
> Nico Sabbi wrote:
>
>> This patch adds more informations about the chapter seeked to, like
>> the name
>> and the amount of chapters available, so the OSD information can be
>> more complete.
>>
>> For the stream-driven case the chapter_name will be " of %3d", so the
>> user can see
>> how many chapters are available.
>>
>> If no one objects I'll commit this patch tomorrow.
>>
>> - if(demuxer->num_chapters > chap)
>> + if(chapter_name)
>> set_osd_msg(OSD_MSG_TEXT, 1, osd_duration,
>> MSGTR_OSDChapter,
>> - chap, demuxer->chapters[chap].name);
>> + chap, chapter_name);
>>
>>
>
> added free(chapter_name) here
and fixed forgotten strdup() in the other case
More information about the MPlayer-dev-eng
mailing list