demux/mkv: avoid dynamic_cast to check EOF

We know we have a VLC stream, we can use its special methods.
This commit is contained in:
Steve Lhomme 2024-03-05 09:58:36 +01:00
parent 13745ebf8c
commit 3d136a03df
1 changed files with 1 additions and 2 deletions

View File

@ -212,8 +212,7 @@ next:
if( m_el[mi_level] == NULL )
{
vlc_stream_io_callback *io_callback = dynamic_cast<vlc_stream_io_callback *>(&m_es->I_O());
if ( i_max_read != UINT64_MAX && io_callback != NULL && !io_callback->IsEOF() )
if ( i_max_read != UINT64_MAX && !m_es->I_O().IsEOF() )
{
msg_Dbg(p_demux, "found nothing, go up");
i_ulev = 1;