vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Tue May 12 00:31:25 2015 +0200| [6c16d7516882fb3bf7283fdbc86a56ef931bcbbe] | committer: Francois Cartegnie
demux: adaptative: inherit baseUrl if missing segmentUrl media > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6c16d7516882fb3bf7283fdbc86a56ef931bcbbe --- modules/demux/dash/mpd/IsoffMainParser.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/demux/dash/mpd/IsoffMainParser.cpp b/modules/demux/dash/mpd/IsoffMainParser.cpp index 1ba08be..fa37eee 100644 --- a/modules/demux/dash/mpd/IsoffMainParser.cpp +++ b/modules/demux/dash/mpd/IsoffMainParser.cpp @@ -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")) { _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits