Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
19412:747453e12f3b | 19413:acd26ccbff0d |
---|---|
936 | 936 |
937 for(n = 0; info && info[2*n] != NULL; n++) | 937 for(n = 0; info && info[2*n] != NULL; n++) |
938 { | 938 { |
939 if(!strcasecmp(opt,info[2*n])) | 939 if(!strcasecmp(opt,info[2*n])) |
940 { | 940 { |
941 mp_msg(MSGT_DEMUX, MSGL_WARN,MSGTR_DemuxerInfoAlreadyPresent,opt); | 941 mp_msg(MSGT_DEMUX, MSGL_INFO,MSGTR_DemuxerInfoChanged,opt,param); |
942 free(info[2*n+1]); | |
943 info[2*n+1] = strdup(param); | |
942 return 0; | 944 return 0; |
943 } | 945 } |
944 } | 946 } |
945 | 947 |
946 info = demuxer->info = (char**)realloc(info,(2*(n+2))*sizeof(char*)); | 948 info = demuxer->info = (char**)realloc(info,(2*(n+2))*sizeof(char*)); |