[vlc-commits] demux: mp4: fix track enabled/disabled debug spam

Francois Cartegnie git at videolan.org
Tue Oct 27 19:13:52 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct 22 14:14:49 2015 +0200| [f77b1a586ce1f3b4c20ccb4dcbade041dd56f21e] | committer: Francois Cartegnie

demux: mp4: fix track enabled/disabled debug spam

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f77b1a586ce1f3b4c20ccb4dcbade041dd56f21e
---

 modules/demux/mp4/mp4.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 4bb5349..4378162 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -4005,7 +4005,8 @@ int DemuxFrg( demux_t *p_demux )
             continue;
 
         es_out_Control( p_demux->out, ES_OUT_GET_ES_STATE, tk->p_es, &b );
-        msg_Dbg( p_demux, "track %u %s!", tk->i_track_ID, b ? "enabled" : "disabled" );
+        if( tk->b_selected != b )
+            msg_Dbg( p_demux, "track %u %s!", tk->i_track_ID, b ? "enabled" : "disabled" );
 
         if( tk->b_selected && !b )
         {
@@ -5090,7 +5091,9 @@ static int DemuxAsLeaf( demux_t *p_demux )
             continue;
 
         es_out_Control( p_demux->out, ES_OUT_GET_ES_STATE, tk->p_es, &b );
-        msg_Dbg( p_demux, "track %u %s!", tk->i_track_ID, b ? "enabled" : "disabled" );
+
+        if(tk->b_selected != b)
+            msg_Dbg( p_demux, "track %u %s!", tk->i_track_ID, b ? "enabled" : "disabled" );
 
         if( tk->b_selected && !b )
             MP4_TrackUnselect( p_demux, tk );



More information about the vlc-commits mailing list