[vlc-commits] demux: hls: parse SESSION-KEY

Francois Cartegnie git at videolan.org
Fri May 10 11:13:30 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Apr 19 11:33:54 2019 +0200| [15722e9bb14b78f4776b32d38db09704b02f7a68] | committer: Francois Cartegnie

demux: hls: parse SESSION-KEY

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

 modules/demux/hls/playlist/Tags.cpp | 2 ++
 modules/demux/hls/playlist/Tags.hpp | 1 +
 2 files changed, 3 insertions(+)

diff --git a/modules/demux/hls/playlist/Tags.cpp b/modules/demux/hls/playlist/Tags.cpp
index 6e7e35fa87..5c63f0efbc 100644
--- a/modules/demux/hls/playlist/Tags.cpp
+++ b/modules/demux/hls/playlist/Tags.cpp
@@ -309,6 +309,7 @@ Tag * TagFactory::createTagByName(const std::string &name, const std::string &va
         {"EXT-X-I-FRAMES-ONLY",             Tag::EXTXIFRAMESONLY},
         {"EXT-X-MEDIA",                     AttributesTag::EXTXMEDIA},
         {"EXT-X-STREAM-INF",                AttributesTag::EXTXSTREAMINF},
+        {"EXT-X-SESSION-KEY",               AttributesTag::EXTXSESSIONKEY},
         {"EXTINF",                          ValuesListTag::EXTINF},
         {"",                                SingleValueTag::URI},
         {NULL,                              0},
@@ -341,6 +342,7 @@ Tag * TagFactory::createTagByName(const std::string &name, const std::string &va
             return new (std::nothrow) ValuesListTag(exttagmapping[i].i, value);
 
         case AttributesTag::EXTXKEY:
+        case AttributesTag::EXTXSESSIONKEY:
         case AttributesTag::EXTXMAP:
         case AttributesTag::EXTXMEDIA:
         case AttributesTag::EXTXSTREAMINF:
diff --git a/modules/demux/hls/playlist/Tags.hpp b/modules/demux/hls/playlist/Tags.hpp
index 504c80648f..9f2cd8af9e 100644
--- a/modules/demux/hls/playlist/Tags.hpp
+++ b/modules/demux/hls/playlist/Tags.hpp
@@ -97,6 +97,7 @@ namespace hls
                     EXTXMAP,
                     EXTXMEDIA,
                     EXTXSTREAMINF,
+                    EXTXSESSIONKEY,
                 };
                 AttributesTag(int, const std::string &);
                 virtual ~AttributesTag();



More information about the vlc-commits mailing list