[vlc-commits] demux: hls: check for quotes

Francois Cartegnie git at videolan.org
Fri Nov 22 05:20:20 CET 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Nov 22 09:10:03 2019 +0900| [dd810f923ee3f4c1a1f8898165d095154f30f133] | committer: Francois Cartegnie

demux: hls: check for quotes

refs #23187

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

 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 af67a8a994..fd6336c531 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