[vlc-commits] demux:mkv: use the more generic EbmlMaster::GetDataStart() method for each parser
Steve Lhomme
git at videolan.org
Wed Jan 3 11:17:43 CET 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jan 2 16:38:10 2018 +0100| [9c87aa8e4e6812841f9542e39c6cbc53a7cf7edf] | committer: Jean-Baptiste Kempf
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 <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9c87aa8e4e6812841f9542e39c6cbc53a7cf7edf
---
modules/demux/mkv/Ebml_parser.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mkv/Ebml_parser.cpp b/modules/demux/mkv/Ebml_parser.cpp
index 139d93f312..00b738c578 100644
--- a/modules/demux/mkv/Ebml_parser.cpp
+++ b/modules/demux/mkv/Ebml_parser.cpp
@@ -119,7 +119,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() );
}
More information about the vlc-commits
mailing list