# HG changeset patch # User reimar # Date 1155771159 0 # Node ID acd26ccbff0d75bc6298ea908db812491cc2c8cf # Parent 747453e12f3bc629e4351cd20dd2f97a9f608361 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. diff -r 747453e12f3b -r acd26ccbff0d libmpdemux/demuxer.c --- 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; } }