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

VLCMetadataService: Compute & store media duration

parent c2f1588f
......@@ -87,6 +87,8 @@ ServiceStatus VLCMetadataService::handleMediaMeta( FilePtr file, VLC::Media& med
track.channels() );
}
}
auto duration = media.duration();
file->setDuration( duration );
if ( isAudio == true )
{
if ( parseAudioFile( file, media ) == 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