changeset 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 747453e12f3b
children ef3748be83ea
files libmpdemux/demuxer.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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;
 	  }
       }