aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCastagnaIT <gottardo.stefano.83@gmail.com>2024-09-29 09:51:27 +0200
committerCastagnaIT <gottardo.stefano.83@gmail.com>2024-09-29 09:51:27 +0200
commit7965060b2a1c6de4a9504e7aa14c1bead7283891 (patch)
tree867dcc3734ee139437157458d0683e63092ef8b5
parent7d3c7b6c6ef1936a78bab8ef5dbb06926e32dbf6 (diff)
[VideoPlayer][StreamInfo] Add fps info to VideoStreamInfo
-rw-r--r--xbmc/cores/VideoPlayer/Interface/StreamInfo.h2
-rw-r--r--xbmc/cores/VideoPlayer/VideoPlayer.cpp4
-rw-r--r--xbmc/cores/VideoPlayer/VideoPlayer.h2
3 files changed, 8 insertions, 0 deletions
diff --git a/xbmc/cores/VideoPlayer/Interface/StreamInfo.h b/xbmc/cores/VideoPlayer/Interface/StreamInfo.h
index df67662e9b..4fc610a613 100644
--- a/xbmc/cores/VideoPlayer/Interface/StreamInfo.h
+++ b/xbmc/cores/VideoPlayer/Interface/StreamInfo.h
@@ -73,6 +73,8 @@ struct VideoStreamInfo : StreamInfo
std::string stereoMode;
int angles = 0;
StreamHdrType hdrType = StreamHdrType::HDR_TYPE_NONE;
+ uint32_t fpsRate{0};
+ uint32_t fpsScale{0};
};
struct ProgramInfo
diff --git a/xbmc/cores/VideoPlayer/VideoPlayer.cpp b/xbmc/cores/VideoPlayer/VideoPlayer.cpp
index 1deb7d2ba7..78623671b9 100644
--- a/xbmc/cores/VideoPlayer/VideoPlayer.cpp
+++ b/xbmc/cores/VideoPlayer/VideoPlayer.cpp
@@ -535,6 +535,8 @@ void CSelectionStreams::Update(const std::shared_ptr<CDVDInputStream>& input,
s.stereo_mode = vstream->stereo_mode;
s.bitrate = vstream->iBitRate;
s.hdrType = vstream->hdr_type;
+ s.fpsRate = static_cast<uint32_t>(vstream->iFpsRate);
+ s.fpsScale = static_cast<uint32_t>(vstream->iFpsScale);
}
if(stream->type == STREAM_AUDIO)
{
@@ -5297,6 +5299,8 @@ void CVideoPlayer::GetVideoStreamInfo(int streamId, VideoStreamInfo& info) const
info.stereoMode = s.stereo_mode;
info.flags = s.flags;
info.hdrType = s.hdrType;
+ info.fpsRate = s.fpsRate;
+ info.fpsScale = s.fpsScale;
}
int CVideoPlayer::GetVideoStreamCount() const
diff --git a/xbmc/cores/VideoPlayer/VideoPlayer.h b/xbmc/cores/VideoPlayer/VideoPlayer.h
index f340b85e83..d67f08d6b2 100644
--- a/xbmc/cores/VideoPlayer/VideoPlayer.h
+++ b/xbmc/cores/VideoPlayer/VideoPlayer.h
@@ -197,6 +197,8 @@ struct SelectionStream
std::string stereo_mode;
float aspect_ratio = 0.0f;
StreamHdrType hdrType = StreamHdrType::HDR_TYPE_NONE;
+ uint32_t fpsScale{0};
+ uint32_t fpsRate{0};
};
class CSelectionStreams