[vlc-commits] [Git][videolan/vlc][master] 2 commits: demux: hls: iterate on a reference to list items
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Sep 26 12:18:19 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
8df4b9fd by Steve Lhomme at 2025-09-26T12:01:17+00:00
demux: hls: iterate on a reference to list items
- - - - -
66c3788d by Steve Lhomme at 2025-09-26T12:01:17+00:00
demux: adaptive: iterate on a reference to vector items
- - - - -
3 changed files:
- modules/demux/adaptive/xml/DOMParser.cpp
- modules/demux/dash/mpd/IsoffMainParser.cpp
- modules/demux/hls/playlist/Parser.cpp
Changes:
=====================================
modules/demux/adaptive/xml/DOMParser.cpp
=====================================
@@ -183,7 +183,7 @@ void DOMParser::print (Node *node, int offset)
const Node::Attributes &attributes = node->getAttributes();
- for(auto attr : attributes)
+ for(auto & attr : attributes)
msg_Dbg(this->stream, " %s=%s", attr.name.c_str(), attr.value.c_str());
msg_Dbg(this->stream, "\n");
=====================================
modules/demux/dash/mpd/IsoffMainParser.cpp
=====================================
@@ -112,7 +112,7 @@ void IsoffMainParser::parseMPDAttributes (MPD *mpd, xml::Node *node)
mpd->b_needsUpdates = false;
- for(auto attr: attributes)
+ for(auto & attr: attributes)
{
if(attr.name == "mediaPresentationDuration")
{
=====================================
modules/demux/hls/playlist/Parser.cpp
=====================================
@@ -604,7 +604,7 @@ M3U8 * M3U8Parser::parse(vlc_object_t *p_object, stream_t *p_stream, const std::
{
if(tag->getAttributeByName(typecat.type))
{
- for(auto codec : entry.codecs)
+ for(auto & codec : entry.codecs)
{
if(codec.cat == typecat.cat)
{
@@ -732,7 +732,7 @@ M3U8 * M3U8Parser::parse(vlc_object_t *p_object, stream_t *p_stream, const std::
auto groupmapit = groupsmap.find(mediainfo.group);
if(groupmapit != groupsmap.end())
{
- for(auto p : (*groupmapit).second)
+ for(auto & p : (*groupmapit).second)
{
FormatNamespace fns(p.first);
for(auto typecat : typescats)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/412e7f0c963ef6c3e288712a72801ed7b8fd577e...66c3788d2aed5f4c2cb5fdc295a02f6330c7f59b
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/412e7f0c963ef6c3e288712a72801ed7b8fd577e...66c3788d2aed5f4c2cb5fdc295a02f6330c7f59b
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