[MPlayer-cvslog] r29676 - trunk/libmpdemux/demuxer.c

reimar subversion at mplayerhq.hu
Mon Sep 14 10:29:19 CEST 2009


Author: reimar
Date: Mon Sep 14 10:29:18 2009
New Revision: 29676

Log:
Reduce verbosity if demuxer sets an info value to the same as the current value.

Modified:
   trunk/libmpdemux/demuxer.c

Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c	Sun Sep 13 03:49:40 2009	(r29675)
+++ trunk/libmpdemux/demuxer.c	Mon Sep 14 10:29:18 2009	(r29676)
@@ -1144,6 +1144,10 @@ int demux_info_add(demuxer_t *demuxer, c
 
     for (n = 0; info && info[2 * n] != NULL; n++) {
         if (!strcasecmp(opt, info[2 * n])) {
+            if (!strcmp(param, info[2 * n + 1])) {
+                mp_msg(MSGT_DEMUX, MSGL_V, "Demuxer info %s set to unchanged value %s\n", opt, param);
+                return 0;
+            }
             mp_msg(MSGT_DEMUX, MSGL_INFO, MSGTR_DemuxerInfoChanged, opt,
                    param);
             free(info[2 * n + 1]);


More information about the MPlayer-cvslog mailing list