[vlc-commits] demux: adaptative: add missing default switch policy for hls

Francois Cartegnie git at videolan.org
Thu Aug 6 17:30:20 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Aug  2 01:22:58 2015 +0200| [9f7aa6fe34b63c79f4e67fb82812466d65492c4e] | committer: Francois Cartegnie

demux: adaptative: add missing default switch policy for hls

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

 modules/demux/hls/playlist/Representation.cpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/hls/playlist/Representation.cpp b/modules/demux/hls/playlist/Representation.cpp
index 3c86059..c5da941 100644
--- a/modules/demux/hls/playlist/Representation.cpp
+++ b/modules/demux/hls/playlist/Representation.cpp
@@ -37,6 +37,7 @@ Representation::Representation  ( BaseAdaptationSet *set ) :
                 BaseRepresentation( set )
 {
     b_live = true;
+    switchpolicy = SegmentInformation::SWITCH_SEGMENT_ALIGNED; /* FIXME: based on streamformat */
 }
 
 Representation::~Representation ()



More information about the vlc-commits mailing list