[vlc-commits] demux: hls: add media description
Francois Cartegnie
git at videolan.org
Sat Jul 25 22:30:46 CEST 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Jul 25 22:24:23 2015 +0200| [b00fc7f350e748bcd03d980fa2d11379212d5150] | committer: Francois Cartegnie
demux: hls: add media description
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b00fc7f350e748bcd03d980fa2d11379212d5150
---
modules/demux/hls/playlist/Parser.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/demux/hls/playlist/Parser.cpp b/modules/demux/hls/playlist/Parser.cpp
index 6de08cd..8c2ac3b 100644
--- a/modules/demux/hls/playlist/Parser.cpp
+++ b/modules/demux/hls/playlist/Parser.cpp
@@ -354,6 +354,10 @@ M3U8 * Parser::parse(const std::string &playlisturl)
{
std::pair<std::string, AttributesTag *> pair = *groupsit;
parseRepresentation(altAdaptSet, pair.second);
+
+ if(pair.second->getAttributeByName("NAME"))
+ altAdaptSet->description.Set(pair.second->getAttributeByName("NAME")->quotedString());
+
if(!altAdaptSet->getRepresentations().empty())
period->addAdaptationSet(altAdaptSet);
else
More information about the vlc-commits
mailing list