]> git.sesse.net Git - vlc/commitdiff
demux_xspf: remove dummy test (the test is done at the begining of the function
authorRémi Duraffort <ivoire@videolan.org>
Wed, 19 Aug 2009 16:48:09 +0000 (18:48 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 19 Aug 2009 16:48:09 +0000 (18:48 +0200)
and the pointer is never modified).

modules/demux/playlist/xspf.c

index 2d25a26ffcb08d6d7d5327c45c13142b9711bcf4..a35923e31cc06ca4ee82a879750c308d6d4861d3 100644 (file)
@@ -445,14 +445,6 @@ static bool parse_track_node COMPLEX_INTERFACE
                 /* complex content is parsed in a separate function */
                 if( p_handler->type == COMPLEX_CONTENT )
                 {
-                    if( !p_new_input )
-                    {
-                        msg_Err( p_demux,
-                                 "at <%s> level no new item has been allocated",
-                                 p_handler->name );
-                        FREE_ATT();
-                        return false;
-                    }
                     if( p_handler->pf_handler.cmplx( p_demux,
                                                      p_new_input,
                                                      p_xml_reader,
@@ -570,13 +562,6 @@ static bool parse_track_node COMPLEX_INTERFACE
                 else
                 {
                     /* there MUST be an item */
-                    if( !p_new_input )
-                    {
-                        msg_Err( p_demux, "item not yet created at <%s>",
-                                 psz_name );
-                        FREE_ATT();
-                        return false;
-                    }
                     if( p_handler->pf_handler.smpl )
                     {
                         p_handler->pf_handler.smpl( p_new_input,