Commit cea401ce authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

demux/nsv: early abort in case of unknown video + audio

If neither video nor audio track can be played, these changes make
sure that we do not waste our breath demuxing a stream that will not
output anything.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent bf03219b
......@@ -595,6 +595,12 @@ static int ReadNSVs( demux_t *p_demux )
}
//msg_Dbg( p_demux, " - fps=%.3f", 1000000.0 / (double)p_sys->i_pcr_inc );
if( p_sys->p_audio == NULL && p_sys->p_video == NULL )
{
msg_Err( p_demux, "unable to play neither audio nor video, aborting." );
return VLC_EGENERIC;
}
return VLC_SUCCESS;
}
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