[vlc-devel] commit: Fix opening of some podcasts. (Antoine Cellerier )

git version control git at videolan.org
Thu Sep 18 18:56:57 CEST 2008


vlc | branch: 0.9-bugfix | Antoine Cellerier <dionoea at videolan.org> | Thu Sep 18 18:57:16 2008 +0200| [559ecae12e1edbed7bb2d24391423f34c22f8275] | committer: Antoine Cellerier 

Fix opening of some podcasts.

Fixes opening podcasts like http://feeds.feedburner.com/Terravideos
(cherry picked from commit db6404e51faf77f3bb3f1c32677be55465ef961b)

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

 modules/demux/playlist/podcast.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/modules/demux/playlist/podcast.c b/modules/demux/playlist/podcast.c
index c507cdd..8dadc14 100644
--- a/modules/demux/playlist/podcast.c
+++ b/modules/demux/playlist/podcast.c
@@ -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" ) )




More information about the vlc-devel mailing list