[vlc-commits] demux: hls: parse SESSION-KEY
Francois Cartegnie
git at videolan.org
Mon Mar 30 16:16:17 CEST 2020
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Apr 19 11:33:54 2019 +0200| [86a1c7dafd77493a2893e3b7b7b3845f8b5c44ed] | committer: Francois Cartegnie
demux: hls: parse SESSION-KEY
(cherry picked from commit 15722e9bb14b78f4776b32d38db09704b02f7a68)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=86a1c7dafd77493a2893e3b7b7b3845f8b5c44ed
---
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 cccfbe9f0d..f608e1177b 100644
--- a/modules/demux/hls/playlist/Tags.cpp
+++ b/modules/demux/hls/playlist/Tags.cpp
@@ -302,6 +302,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},
@@ -334,6 +335,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