[vlc-commits] demux: hls: check for quotes
Francois Cartegnie
git at videolan.org
Mon Jan 13 16:47:04 CET 2020
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Nov 22 09:10:03 2019 +0900| [5c2ef7a06e7d92955c005ac7a91b8db428c090e5] | committer: Francois Cartegnie
demux: hls: check for quotes
refs #23187
(cherry picked from commit 74459499e1fc49ed6b351d16d91cde1d1e273dee)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=5c2ef7a06e7d92955c005ac7a91b8db428c090e5
---
modules/demux/hls/playlist/Tags.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/demux/hls/playlist/Tags.cpp b/modules/demux/hls/playlist/Tags.cpp
index f0ef338824..cccfbe9f0d 100644
--- a/modules/demux/hls/playlist/Tags.cpp
+++ b/modules/demux/hls/playlist/Tags.cpp
@@ -118,6 +118,9 @@ Attribute Attribute::unescapeQuotes() const
std::string Attribute::quotedString() const
{
+ if(!value.empty() && value.at(0) != '"')
+ return value;
+
if(value.length() < 2)
return "";
More information about the vlc-commits
mailing list