From 85d85da0f28cacd9e56d971ef470b622ef216d96 Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 16 Aug 2006 23:32:39 +0000 Subject: [PATCH] Update information and print new value when demux_info_add is called twice for the same tag. Should show currently playing title with Ogg streams. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19419 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demuxer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libmpdemux/demuxer.c b/libmpdemux/demuxer.c index 5a97f35ffb..818b87a225 100644 --- a/libmpdemux/demuxer.c +++ b/libmpdemux/demuxer.c @@ -938,7 +938,9 @@ int demux_info_add(demuxer_t *demuxer, const char *opt, const char *param) { if(!strcasecmp(opt,info[2*n])) { - mp_msg(MSGT_DEMUX, MSGL_WARN,MSGTR_DemuxerInfoAlreadyPresent,opt); + mp_msg(MSGT_DEMUX, MSGL_INFO,MSGTR_DemuxerInfoChanged,opt,param); + free(info[2*n+1]); + info[2*n+1] = strdup(param); return 0; } }