Commit bad4cc4f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

VLCMetadataService: Constify

parent b8cf9667
......@@ -47,7 +47,7 @@ bool VLCMetadataService::run( FilePtr file, void* data )
return true;
}
ServiceStatus VLCMetadataService::handleMediaMeta( FilePtr file, VLC::Media& media )
ServiceStatus VLCMetadataService::handleMediaMeta( FilePtr file, VLC::Media& media ) const
{
auto tracks = media.tracks();
if ( tracks.size() == 0 )
......@@ -87,7 +87,7 @@ ServiceStatus VLCMetadataService::handleMediaMeta( FilePtr file, VLC::Media& med
return StatusSuccess;
}
bool VLCMetadataService::parseAudioFile( FilePtr file, VLC::Media& media )
bool VLCMetadataService::parseAudioFile( FilePtr file, VLC::Media& media ) const
{
auto albumTitle = media.meta( libvlc_meta_Album );
if ( albumTitle.length() == 0 )
......@@ -137,7 +137,7 @@ bool VLCMetadataService::parseAudioFile( FilePtr file, VLC::Media& media )
return true;
}
bool VLCMetadataService::parseVideoFile( FilePtr file, VLC::Media& media )
bool VLCMetadataService::parseVideoFile( FilePtr file, VLC::Media& media ) const
{
auto title = media.meta( libvlc_meta_Title );
if ( title.length() == 0 )
......
......@@ -15,9 +15,9 @@ class VLCMetadataService : public IMetadataService
virtual bool run( FilePtr file, void *data );
private:
ServiceStatus handleMediaMeta(FilePtr file , VLC::Media &media);
bool parseAudioFile(FilePtr file , VLC::Media &media);
bool parseVideoFile(FilePtr file , VLC::Media &media);
ServiceStatus handleMediaMeta(FilePtr file , VLC::Media &media) const;
bool parseAudioFile(FilePtr file , VLC::Media &media) const;
bool parseVideoFile(FilePtr file , VLC::Media &media) const;
VLC::Instance m_instance;
IMetadataServiceCb* m_cb;
......
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