Commit 8e9df2d7 authored by Rémi Duraffort's avatar Rémi Duraffort

demux_xspf: remove dummy test (the test is done at the begining of the function

and the pointer is never modified).
parent a19cacad
...@@ -445,14 +445,6 @@ static bool parse_track_node COMPLEX_INTERFACE ...@@ -445,14 +445,6 @@ static bool parse_track_node COMPLEX_INTERFACE
/* complex content is parsed in a separate function */ /* complex content is parsed in a separate function */
if( p_handler->type == COMPLEX_CONTENT ) 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, if( p_handler->pf_handler.cmplx( p_demux,
p_new_input, p_new_input,
p_xml_reader, p_xml_reader,
...@@ -570,13 +562,6 @@ static bool parse_track_node COMPLEX_INTERFACE ...@@ -570,13 +562,6 @@ static bool parse_track_node COMPLEX_INTERFACE
else else
{ {
/* there MUST be an item */ /* 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 ) if( p_handler->pf_handler.smpl )
{ {
p_handler->pf_handler.smpl( p_new_input, p_handler->pf_handler.smpl( p_new_input,
......
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