Commit 3b122e7a authored by Steve Lhomme's avatar Steve Lhomme

demux:mkv: use the more generic EbmlMaster::GetDataStart() method for each parser

That resulted in invalid casts in many cases.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 9c87aa8e)
parent 77d92855
......@@ -110,7 +110,7 @@ void EbmlParser::Reset( demux_t *p_demux )
this->p_demux = p_demux;
mi_user_level = mi_level = 1;
// a little faster and cleaner
m_es->I_O().setFilePointer( static_cast<KaxSegment*>(m_el[0])->GetGlobalPosition(0) );
m_es->I_O().setFilePointer( static_cast<EbmlMaster*>(m_el[0])->GetDataStart() );
}
......
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