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

VLCMetadataService: Consify tracks and tracks container

parent 6ef3b69d
......@@ -96,7 +96,7 @@ void VLCMetadataService::run( std::shared_ptr<Media> file, void* data )
IMetadataService::Status VLCMetadataService::handleMediaMeta( std::shared_ptr<Media> media, VLC::Media& vlcMedia ) const
{
auto tracks = vlcMedia.tracks();
const auto tracks = vlcMedia.tracks();
if ( tracks.size() == 0 )
{
LOG_ERROR( "Failed to fetch tracks" );
......@@ -105,7 +105,7 @@ IMetadataService::Status VLCMetadataService::handleMediaMeta( std::shared_ptr<Me
auto t = m_dbConn->newTransaction();
bool isAudio = true;
for ( auto& track : tracks )
for ( const auto& track : tracks )
{
auto codec = track.codec();
std::string fcc( (const char*)&codec, 4 );
......
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