From 613947e92f538d63c03d40c30d7d1e3493c2e366 Mon Sep 17 00:00:00 2001
From: Colin Cross <mythtv@colincross.com>
Date: Sat, 4 Jan 2014 22:39:40 -0800
Subject: [PATCH] mythplayer: change default accuracy of seeks to 50%
HDPVR streams have keyframes 4 seconds apart, which can require
many frames to be decoded for exact seeks. On a slow decoder
(such as vdpau), this can take a few seconds. Change the
default seek accuracy to 50% to allow 5 second seeks to always
jump to a keyframe on these streams.
---
mythtv/libs/libmythtv/mythplayer.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
index 4cba867..b9d21c9 100644
a
|
b
|
const int MythPlayer::kNightModeContrastAdjustment = 10; |
91 | 91 | const double MythPlayer::kInaccuracyNone = 0; |
92 | 92 | |
93 | 93 | // By default, when seeking, snap to a keyframe if the keyframe's |
94 | | // distance from the target frame is less than 10% of the total seek |
| 94 | // distance from the target frame is less than 50% of the total seek |
95 | 95 | // distance. |
96 | | const double MythPlayer::kInaccuracyDefault = 0.1; |
| 96 | const double MythPlayer::kInaccuracyDefault = 0.5; |
97 | 97 | |
98 | 98 | // Allow greater inaccuracy (50%) in the cutlist editor (unless the |
99 | 99 | // editor seek distance is set to 1 frame or 1 keyframe). |