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

VLCMetadataService: Expose FPS

parent b4ddf4b9
......@@ -67,7 +67,8 @@ ServiceStatus VLCMetadataService::handleMediaMeta( VLCMetadataService::Context*
if ( track.type() == VLC::MediaTrack::Video )
{
isAudio = false;
ctx->file->addVideoTrack( fcc, track.width(), track.height(), .0f );
auto fps = (float)track.fpsNum() / (float)track.fpsDen();
ctx->file->addVideoTrack( fcc, track.width(), track.height(), fps );
}
else if ( track.type() == VLC::MediaTrack::Audio )
{
......
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