[vlc-commits] [Git][videolan/vlc][master] demux: mp4: Allow deselecting finished tracks

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Sep 5 02:41:30 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
903ba842 by Andrey Turkin at 2026-09-05T02:29:56+00:00
demux: mp4: Allow deselecting finished tracks

Completed tracks were ignored from selection/deselection, so they stayed
always selected. This breaks re-selecting e.g. embedded TTML subtitles
which consist of a single large sample spanning an entire media time.

- - - - -


1 changed file:

- modules/demux/mp4/mp4.c


Changes:

=====================================
modules/demux/mp4/mp4.c
=====================================
@@ -1771,8 +1771,7 @@ static int DemuxMoov( demux_t *p_demux )
         mp4_track_t *tk = &p_sys->track[i_track];
         bool b = true;
 
-        if( !tk->b_ok || MP4_isMetadata( tk ) ||
-            ( tk->b_selected && tk->i_sample >= tk->i_sample_count ) )
+        if( !tk->b_ok || MP4_isMetadata( tk ) )
         {
             continue;
         }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/903ba842bc8ebf04208647afa949beff3bb69c2c

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/903ba842bc8ebf04208647afa949beff3bb69c2c
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list