[vlc-commits] demux:mkv: use the more generic EbmlMaster::GetDataStart() method for each parser
Steve Lhomme
git at videolan.org
Mon Mar 19 13:36:02 CET 2018
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jan 2 16:38:10 2018 +0100| [3b122e7ab43a569a76040d2657d9dd674ac89fcd] | committer: 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 <jb at videolan.org>
(cherry picked from commit 9c87aa8e4e6812841f9542e39c6cbc53a7cf7edf)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=3b122e7ab43a569a76040d2657d9dd674ac89fcd
---
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 ccd7ccf118..4a9325bf23 100644
--- a/modules/demux/mkv/Ebml_parser.cpp
+++ b/modules/demux/mkv/Ebml_parser.cpp
@@ -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() );
}
More information about the vlc-commits
mailing list