~siretart/vlc/ubuntu

« back to all changes in this revision

Viewing changes to modules/demux/playlist/podcast.c

  • Committer: Reinhard Tartler
  • Date: 2008-09-26 06:45:40 UTC
  • mto: (21.2.1 vlc-0.9.3)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: siretart@tauware.de-20080926064540-0sd8zwmig33ksmy4
Tags: upstream-ubuntu-0.9.3
ImportĀ upstreamĀ versionĀ 0.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * podcast.c : podcast playlist imports
3
3
 *****************************************************************************
4
4
 * Copyright (C) 2005 the VideoLAN team
5
 
 * $Id$
 
5
 * $Id: 8dadc14923fac91392064017061bb3cc47eda825 $
6
6
 *
7
7
 * Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
8
8
 *
125
125
        msg_Err( p_demux, "invalid file (no root node)" );
126
126
        return -1;
127
127
    }
 
128
 
 
129
    while( xml_ReaderNodeType( p_xml_reader ) == XML_READER_NONE )
 
130
        if( xml_ReaderRead( p_xml_reader ) != 1 )
 
131
        {
 
132
            msg_Err( p_demux, "invalid file (no root node)" );
 
133
            return -1;
 
134
        }
 
135
 
128
136
    if( xml_ReaderNodeType( p_xml_reader ) != XML_READER_STARTELEM ||
129
137
        ( psz_elname = xml_ReaderName( p_xml_reader ) ) == NULL ||
130
138
        strcmp( psz_elname, "rss" ) )