[vlc-commits] demux: xspf: fix skip nodes end test
Francois Cartegnie
git at videolan.org
Thu Sep 7 16:08:38 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Sep 7 15:54:00 2017 +0200| [d0218470c005d3b164d9e2e6059548242abe2644] | committer: Francois Cartegnie
demux: xspf: fix skip nodes end test
cid #1417481
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d0218470c005d3b164d9e2e6059548242abe2644
---
modules/demux/playlist/xspf.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/modules/demux/playlist/xspf.c b/modules/demux/playlist/xspf.c
index 29c7e3697c..88d4fdf296 100644
--- a/modules/demux/playlist/xspf.c
+++ b/modules/demux/playlist/xspf.c
@@ -707,13 +707,9 @@ static bool skip_element COMPLEX_INTERFACE
break;
}
case XML_READER_ENDELEM:
- if(lvl == 0)
- {
- if(name && psz_element && strcmp(psz_element, name))
+ if(lvl == 1 &&
+ name && psz_element && strcmp(psz_element, name))
return false;
- else
- return true;
- }
lvl--;
break;
case XML_READER_NONE:
More information about the vlc-commits
mailing list