[vlc-commits] demux: hls: don't use auto for lambda parameter

Marvin Scholz git at videolan.org
Wed Apr 1 08:43:58 CEST 2020


vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Wed Apr  1 08:43:31 2020 +0200| [b508103eddc4b0a07df1c90eac70b2aaed53eef0] | committer: Marvin Scholz

demux: hls: don't use auto for lambda parameter

Using auto for lambda parameters is a C++14 feature (generic lambda),
but VLC 3.x does not require C++14.

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

 modules/demux/hls/playlist/Parser.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/hls/playlist/Parser.cpp b/modules/demux/hls/playlist/Parser.cpp
index 0d26405b1e..2140729cc5 100644
--- a/modules/demux/hls/playlist/Parser.cpp
+++ b/modules/demux/hls/playlist/Parser.cpp
@@ -552,7 +552,7 @@ M3U8 * M3U8Parser::parse(vlc_object_t *p_object, stream_t *p_stream, const std::
     playlist->addPeriod(period);
 
     auto xstart = std::find_if(tagslist.cbegin(), tagslist.cend(),
-                               [](auto t) {return t->getType() == AttributesTag::EXTXSTART;});
+                               [](const Tag *t) {return t->getType() == AttributesTag::EXTXSTART;});
     if(xstart != tagslist.end())
     {
         auto xstartTag = static_cast<const AttributesTag *>(*xstart);



More information about the vlc-commits mailing list