mirror of https://github.com/mpv-player/mpv
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:
parent
82300a99c6
commit
85d85da0f2
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue