Commit d3086fea authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

dash: Fixing SegmentInfoDefault parsing.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 83b82fc3
...@@ -266,6 +266,7 @@ void BasicCMParser::setGroups (Node *root, Period *period) ...@@ -266,6 +266,7 @@ void BasicCMParser::setGroups (Node *root, Period *period)
std::map<std::string, std::string>::const_iterator it = attr.find( "subsegmentAlignmentFlag" ); std::map<std::string, std::string>::const_iterator it = attr.find( "subsegmentAlignmentFlag" );
if ( it != attr.end() && it->second == "true" ) if ( it != attr.end() && it->second == "true" )
group->setSubsegmentAlignmentFlag( true ); //Otherwise it is false by default. group->setSubsegmentAlignmentFlag( true ); //Otherwise it is false by default.
this->parseSegmentInfoDefault( groups.at( i ), group );
this->setRepresentations(groups.at(i), group); this->setRepresentations(groups.at(i), group);
period->addGroup(group); period->addGroup(group);
} }
...@@ -361,9 +362,7 @@ bool BasicCMParser::setSegmentInfo (Node *root, Representation *rep) ...@@ -361,9 +362,7 @@ bool BasicCMParser::setSegmentInfo (Node *root, Representation *rep)
if ( segmentInfo ) if ( segmentInfo )
{ {
const std::map<std::string, std::string> attr = segmentInfo->getAttributes(); SegmentInfo *info = new SegmentInfo;
SegmentInfo *info = new SegmentInfo();
this->parseSegmentInfoCommon( segmentInfo, info ); this->parseSegmentInfoCommon( segmentInfo, info );
//If we don't have any segment, there's no point keeping this SegmentInfo. //If we don't have any segment, there's no point keeping this SegmentInfo.
if ( this->setSegments( segmentInfo, info ) == false ) if ( this->setSegments( segmentInfo, info ) == false )
......
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