demux/playlist: xspf: fix skip of unknown <extension>
commite97622e3b0fc775323bd56e0e3d7d98abbefb96e
authorFilip Roséen <filip@atch.se>
Thu, 18 May 2017 10:08:21 +0000 (18 12:08 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 18 May 2017 16:05:59 +0000 (18 19:05 +0300)
tree828747052a7e59b3372a762e116b41793d30604d
parent0d9d6834b4ac86ca986ab4637dab1e475f2b0c34
demux/playlist: xspf: fix skip of unknown <extension>

As a XML_READER_STARTELEM does not have a corresponding
XML_READER_ENDELEM if the tag is self-closing, the code responsible
for skipping unknown extension-tags would result in skips outside of
the target element.

These changes fixes the issue by making sure that we do not increase
the ignore-scope for self-closing elements.

fixes: #18335

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/demux/playlist/xspf.c