Commit ecfa2b89 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

dash: Don't use the module when MPD parsing failed.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 993077b724bc768345c870f23086bde3c9fc5e9e)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f36d6273
......@@ -101,6 +101,14 @@ static int Open(vlc_object_t *p_obj)
new dash::DASHManager( p_conManager, p_node,
dash::logic::IAdaptationLogic::RateBased );
if ( p_dashManager->getMpdManager()->getMPD() == NULL )
{
msg_Err( p_obj, "MPD file parsing failed." );
delete p_conManager;
delete p_dashManager;
free( p_sys );
return VLC_EGENERIC;
}
p_sys->p_dashManager = p_dashManager;
p_sys->p_node = p_node;
p_sys->p_conManager = p_conManager;
......
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