diff --git a/modules/demux/hls/playlist/Parser.cpp b/modules/demux/hls/playlist/Parser.cpp index c5ccb478d1e2c24c0bda5cbc1b5a81932248790f..fd1733794fd7e15cc8affbdf5095591182e94a34 100644 --- a/modules/demux/hls/playlist/Parser.cpp +++ b/modules/demux/hls/playlist/Parser.cpp @@ -522,12 +522,7 @@ M3U8 * M3U8Parser::parse(vlc_object_t *p_object, stream_t *p_stream, const std:: } const Attribute *typeattr = pair.second->getAttributeByName("TYPE"); - - if(pair.second->getAttributeByName("CODECS")) - { - rep->addCodecs(pair.second->getAttributeByName("CODECS")->quotedString()); - } - else if(typeattr) + if(typeattr) { if(typeattr->value == "AUDIO") rep->addCodecs("mp4a");