[vlc-commits] dash: Parser: Ignore segments without sourceURL

2012-01-24 Thread Hugo Beauzée-Luyssen
vlc/vlc-1.2 | branch: master | Hugo Beauzée-Luyssen beauz...@gmail.com | Thu 
Dec 29 13:19:53 2011 +0100| [356cf412945f63a94568b5194425939d03d33dbc] | 
committer: Jean-Baptiste Kempf

dash: Parser: Ignore segments without sourceURL

Signed-off-by: Jean-Baptiste Kempf j...@videolan.org
(cherry picked from commit fd8787137788fd24f2b9bb9890068d51e6f66a80)

Signed-off-by: Jean-Baptiste Kempf j...@videolan.org

 http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=356cf412945f63a94568b5194425939d03d33dbc
---

 modules/stream_filter/dash/mpd/BasicCMParser.cpp |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/stream_filter/dash/mpd/BasicCMParser.cpp 
b/modules/stream_filter/dash/mpd/BasicCMParser.cpp
index 6c40828..7ca943a 100644
--- a/modules/stream_filter/dash/mpd/BasicCMParser.cpp
+++ b/modules/stream_filter/dash/mpd/BasicCMParser.cpp
@@ -335,7 +335,8 @@ boolBasicCMParser::setSegments  (Node *root, 
SegmentInfo *info)
 {
 Segment *seg = new Segment();
 parseSegment( seg, segments.at(i)-getAttributes() );
-info-addSegment(seg);
+if ( seg-getSourceUrl().empty() == false )
+info-addSegment(seg);
 }
 return true;
 }

___
vlc-commits mailing list
vlc-commits@videolan.org
http://mailman.videolan.org/listinfo/vlc-commits


[vlc-commits] dash: Parser: Ignore segments without sourceURL

2011-12-30 Thread Hugo Beauzée-Luyssen
vlc | branch: master | Hugo Beauzée-Luyssen beauz...@gmail.com | Thu Dec 29 
13:19:53 2011 +0100| [fd8787137788fd24f2b9bb9890068d51e6f66a80] | committer: 
Jean-Baptiste Kempf

dash: Parser: Ignore segments without sourceURL

Signed-off-by: Jean-Baptiste Kempf j...@videolan.org

 http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fd8787137788fd24f2b9bb9890068d51e6f66a80
---

 modules/stream_filter/dash/mpd/BasicCMParser.cpp |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/stream_filter/dash/mpd/BasicCMParser.cpp 
b/modules/stream_filter/dash/mpd/BasicCMParser.cpp
index 6c40828..7ca943a 100644
--- a/modules/stream_filter/dash/mpd/BasicCMParser.cpp
+++ b/modules/stream_filter/dash/mpd/BasicCMParser.cpp
@@ -335,7 +335,8 @@ boolBasicCMParser::setSegments  (Node *root, 
SegmentInfo *info)
 {
 Segment *seg = new Segment();
 parseSegment( seg, segments.at(i)-getAttributes() );
-info-addSegment(seg);
+if ( seg-getSourceUrl().empty() == false )
+info-addSegment(seg);
 }
 return true;
 }

___
vlc-commits mailing list
vlc-commits@videolan.org
http://mailman.videolan.org/listinfo/vlc-commits