Commit b00fc7f3 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: hls: add media description

parent 3e7441cc
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment