[vlc-devel] commit: demux_xspf: remove dummy test ( the test is done at the begining of the function ( Rémi Duraffort )

git version control git at videolan.org
Wed Aug 19 18:57:22 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Aug 19 18:48:09 2009 +0200| [8e9df2d749c211936d954d809f23a467e41c6525] | committer: Rémi Duraffort 

demux_xspf: remove dummy test (the test is done at the begining of the function
and the pointer is never modified).

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

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

diff --git a/modules/demux/playlist/xspf.c b/modules/demux/playlist/xspf.c
index 2d25a26..a35923e 100644
--- a/modules/demux/playlist/xspf.c
+++ b/modules/demux/playlist/xspf.c
@@ -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,




More information about the vlc-devel mailing list