aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Haupt <haupt.wolfgang@gmail.com>2024-07-02 13:53:15 +0200
committerWolfgang Haupt <haupt.wolfgang@gmail.com>2024-07-02 13:57:04 +0200
commit8ade54d7ea0ed055be79bd043f995f14354a2b1d (patch)
tree71eacf682207a5e51ba0e2ca7bedfc97d66b3703
parentfb90b04e8d65c929499157cc99ec23351db7c6ff (diff)
VP: Allow subsecond queue sizes
Signed-off-by: Wolfgang Haupt <haupt.wolfgang@gmail.com>
-rw-r--r--xbmc/cores/VideoPlayer/DVDMessageQueue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/cores/VideoPlayer/DVDMessageQueue.h b/xbmc/cores/VideoPlayer/DVDMessageQueue.h
index 0e745512ac..52dc194a63 100644
--- a/xbmc/cores/VideoPlayer/DVDMessageQueue.h
+++ b/xbmc/cores/VideoPlayer/DVDMessageQueue.h
@@ -84,7 +84,7 @@ public:
int GetLevel() const;
void SetMaxDataSize(int iMaxDataSize) { m_iMaxDataSize = iMaxDataSize; }
- void SetMaxTimeSize(double sec) { m_TimeSize = 1.0 / std::max(1.0, sec); }
+ void SetMaxTimeSize(double sec) { m_TimeSize = 1.0 / sec; }
int GetMaxDataSize() const { return m_iMaxDataSize; }
double GetMaxTimeSize() const { return m_TimeSize; }
bool IsInited() const { return m_bInitialized; }