Commit 559ecae1 authored by Antoine Cellerier's avatar Antoine Cellerier

Fix opening of some podcasts.

Fixes opening podcasts like http://feeds.feedburner.com/Terravideos
(cherry picked from commit db6404e5)
parent 3d529927
......@@ -125,6 +125,14 @@ static int Demux( demux_t *p_demux )
msg_Err( p_demux, "invalid file (no root node)" );
return -1;
}
while( xml_ReaderNodeType( p_xml_reader ) == XML_READER_NONE )
if( xml_ReaderRead( p_xml_reader ) != 1 )
{
msg_Err( p_demux, "invalid file (no root node)" );
return -1;
}
if( xml_ReaderNodeType( p_xml_reader ) != XML_READER_STARTELEM ||
( psz_elname = xml_ReaderName( p_xml_reader ) ) == NULL ||
strcmp( psz_elname, "rss" ) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment