[vlc-devel] commit: Respect mp4 track enable flag. (Laurent Aimar )

git version control git at videolan.org
Sun Jul 20 12:54:30 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jul 20 12:56:42 2008 +0200| [811a68cde20c9c010c813fbb0ca0919764de248d]

Respect mp4 track enable flag.

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

 modules/demux/mp4/mp4.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 7b98fee..f669c1c 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -1989,6 +1989,8 @@ static void MP4_TrackCreate( demux_t *p_demux, mp4_track_t *p_track,
     /* do we launch this track by default ? */
     p_track->b_enable =
         ( ( p_tkhd->data.p_tkhd->i_flags&MP4_TRACK_ENABLED ) != 0 );
+    if( !p_track->b_enable )
+        p_track->fmt.i_priority = -1;
 
     p_track->i_track_ID = p_tkhd->data.p_tkhd->i_track_ID;
     p_track->i_width = p_tkhd->data.p_tkhd->i_width / 65536;




More information about the vlc-devel mailing list