[vlc-commits] [Git][videolan/vlc][master] 2 commits: demux: mkv: only keep the first ChapterSegmentUUID
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri May 1 12:30:33 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
0d2139e3 by Steve Lhomme at 2026-05-01T12:08:32+00:00
demux: mkv: only keep the first ChapterSegmentUUID
If it's present it must be unique. We keep the last value as done for other items
and to keep the same behavior as before.
Fixes #29577
- - - - -
2481b45c by Steve Lhomme at 2026-05-01T12:08:32+00:00
demux: mkv: only keep the first ChapterSegmentEditionUUID
If it's present it must be unique. We keep the last value as done for other items
and to keep the same behavior as before.
- - - - -
1 changed file:
- modules/demux/mkv/matroska_segment_parse.cpp
Changes:
=====================================
modules/demux/mkv/matroska_segment_parse.cpp
=====================================
@@ -1400,6 +1400,7 @@ void matroska_segment_c::ParseChapterAtom( int i_level, KaxChapterAtom *ca, chap
}
E_CASE( KaxChapterSegmentUID, uid )
{
+ delete vars.chapters.p_segment_uid;
vars.chapters.p_segment_uid = new KaxChapterSegmentUID( uid );
vars.obj->b_ref_external_segments = true;
@@ -1407,6 +1408,7 @@ void matroska_segment_c::ParseChapterAtom( int i_level, KaxChapterAtom *ca, chap
}
E_CASE( KaxChapterSegmentEditionUID, euid )
{
+ delete vars.chapters.p_segment_edition_uid;
vars.chapters.p_segment_edition_uid = new KaxChapterSegmentEditionUID( euid );
debug( vars, "ChapterSegmentEditionUID=%x",
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/82fd41938885196b345f492e0c411d9194bb3405...2481b45cf0e6e48722ef7650cfb6b4e92fa8aa2b
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/82fd41938885196b345f492e0c411d9194bb3405...2481b45cf0e6e48722ef7650cfb6b4e92fa8aa2b
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list