Mercurial > mplayer.hg
diff libmpdemux/demuxer.c @ 19413:acd26ccbff0d
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.
author | reimar |
---|---|
date | Wed, 16 Aug 2006 23:32:39 +0000 |
parents | 4e68a3881201 |
children | 7bddb8ee9dec |
line wrap: on
line diff
--- a/libmpdemux/demuxer.c Wed Aug 16 21:08:50 2006 +0000 +++ b/libmpdemux/demuxer.c Wed Aug 16 23:32:39 2006 +0000 @@ -938,7 +938,9 @@ { 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; } }