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

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


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

demux: hls: check for quotes

refs #23187

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

 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