Commit 6c16d751 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: adaptative: inherit baseUrl if missing segmentUrl media

parent f6f45bce
......@@ -307,15 +307,14 @@ size_t IsoffMainParser::parseSegmentList(Node * segListNode, SegmentInformation
for(it = segments.begin(); it != segments.end(); ++it)
{
Node *segmentURL = *it;
std::string mediaUrl = segmentURL->getAttributeValue("media");
if(mediaUrl.empty())
continue;
Segment *seg = new (std::nothrow) Segment(info);
if(!seg)
continue;
seg->setSourceUrl(segmentURL->getAttributeValue("media"));
std::string mediaUrl = segmentURL->getAttributeValue("media");
if(!mediaUrl.empty())
seg->setSourceUrl(mediaUrl);
if(segmentURL->hasAttribute("mediaRange"))
{
......
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