[vlc-commits] demux: hls: end attribute when closing quotes

Francois Cartegnie git at videolan.org
Tue Feb 20 16:13:37 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb 20 15:51:28 2018 +0100| [e53149b6b194109bf05ab91087acb38f52b5fed9] | committer: Francois Cartegnie

demux: hls: end attribute when closing quotes

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

 modules/demux/hls/playlist/Tags.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/demux/hls/playlist/Tags.cpp b/modules/demux/hls/playlist/Tags.cpp
index ef007ff3fe..6e7e35fa87 100644
--- a/modules/demux/hls/playlist/Tags.cpp
+++ b/modules/demux/hls/playlist/Tags.cpp
@@ -239,6 +239,11 @@ void AttributesTag::parseAttributes(const std::string &field)
             else if(c == '"')
             {
                 b_quoted = !b_quoted;
+                if(!b_quoted)
+                {
+                    oss.put((char)iss.get());
+                    break;
+                }
             }
             else if(!b_quoted && (c < '-' || c > 'z')) /* out of range */
             {



More information about the vlc-commits mailing list