Commit 5f34d687 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

ebml: Constify getters.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 418333d2
......@@ -116,7 +116,7 @@ void EbmlParser::Keep( void )
mb_keep = true;
}
int EbmlParser::GetLevel( void )
int EbmlParser::GetLevel( void ) const
{
return mi_user_level;
}
......@@ -193,7 +193,7 @@ EbmlElement *EbmlParser::Get( void )
return m_el[mi_level];
}
bool EbmlParser::IsTopPresent( EbmlElement *el )
bool EbmlParser::IsTopPresent( EbmlElement *el ) const
{
for( int i = 0; i < mi_level; i++ )
{
......
......@@ -43,10 +43,10 @@ class EbmlParser
void Keep( void );
EbmlElement *UnGet( uint64 i_block_pos, uint64 i_cluster_pos );
int GetLevel( void );
int GetLevel( void ) const;
/* Is the provided element presents in our upper elements */
bool IsTopPresent( EbmlElement * );
bool IsTopPresent( EbmlElement * ) const;
private:
EbmlStream *m_es;
......
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