[vlc-commits] [Git][videolan/vlc][master] demux: hls: fix timescale attribute duplication on update
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sun Mar 20 16:54:38 UTC 2022
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
8940fd6c by Francois Cartegnie at 2022-03-20T16:41:44+00:00
demux: hls: fix timescale attribute duplication on update
- - - - -
1 changed file:
- modules/demux/hls/playlist/Parser.cpp
Changes:
=====================================
modules/demux/hls/playlist/Parser.cpp
=====================================
@@ -155,6 +155,7 @@ void M3U8Parser::createAndFillRepresentation(vlc_object_t *p_obj, BaseAdaptation
HLSRepresentation *rep = createRepresentation(adaptSet, tag);
if(rep)
{
+ rep->addAttribute(new TimescaleAttr(Timescale(1000000)));
parseSegments(p_obj, rep, tagslist);
adaptSet->addRepresentation(rep);
}
@@ -223,9 +224,8 @@ void M3U8Parser::parseSegments(vlc_object_t *, HLSRepresentation *rep, const std
bool b_vod = tagslist.size() && tagslist.back()->getType() == SingleValueTag::EXTXENDLIST;
SegmentList *segmentList = new SegmentList(rep, !b_vod && !b_pdt);
+ const Timescale timescale = rep->inheritTimescale();
- Timescale timescale(1000000);
- rep->addAttribute(new TimescaleAttr(timescale));
rep->b_loaded = true;
rep->b_live = !b_vod;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8940fd6c104fcc5bf40e81417e6bd967b4566836
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8940fd6c104fcc5bf40e81417e6bd967b4566836
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list