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
This commit is contained in:
reimar 2006-08-16 23:32:39 +00:00
parent 82300a99c6
commit 85d85da0f2
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}