[vlc-commits] demux: hls: set master playlist description

Francois Cartegnie git at videolan.org
Wed May 15 16:38:53 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon May 13 16:52:52 2019 +0200| [2450570bac611b3004c97c8ece2b02f6c7d964ce] | committer: Francois Cartegnie

demux: hls: set master playlist description

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

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

diff --git a/modules/demux/hls/playlist/Parser.cpp b/modules/demux/hls/playlist/Parser.cpp
index ba782f28c9..dd60b46275 100644
--- a/modules/demux/hls/playlist/Parser.cpp
+++ b/modules/demux/hls/playlist/Parser.cpp
@@ -483,6 +483,12 @@ M3U8 * M3U8Parser::parse(vlc_object_t *p_object, stream_t *p_stream, const std::
                         }
                     }
                 }
+
+                if(adaptSet->description.Get().empty() &&
+                   tag && tag->getAttributeByName("NAME"))
+                {
+                    adaptSet->description.Set(tag->getAttributeByName("NAME")->quotedString());
+                }
             }
             if(!adaptSet->getRepresentations().empty())
                 period->addAdaptationSet(adaptSet);



More information about the vlc-commits mailing list