Commit dcbea797 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

VLCMetadataService: Insert tracks as part of a transaction

parent fbe69247
......@@ -103,6 +103,7 @@ IMetadataService::Status VLCMetadataService::handleMediaMeta( std::shared_ptr<Me
return Status::Fatal;
}
auto t = m_dbConn->newTransaction();
bool isAudio = true;
for ( auto& track : tracks )
{
......@@ -120,6 +121,7 @@ IMetadataService::Status VLCMetadataService::handleMediaMeta( std::shared_ptr<Me
track.language(), track.description() );
}
}
t->commit();
if ( isAudio == true )
{
if ( parseAudioFile( media, vlcMedia ) == false )
......
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