Ticket #12004: 0001-mythplayer-change-default-accuracy-of-seeks-to-50.patch

File 0001-mythplayer-change-default-accuracy-of-seeks-to-50.patch, 1.4 KB (added by mythtv@…, 10 years ago)

Patch to change default seek accuracy to 50%

  • mythtv/libs/libmythtv/mythplayer.cpp

    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; 
    9191const double MythPlayer::kInaccuracyNone = 0;
    9292
    9393// 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
    9595// distance.
    96 const double MythPlayer::kInaccuracyDefault = 0.1;
     96const double MythPlayer::kInaccuracyDefault = 0.5;
    9797
    9898// Allow greater inaccuracy (50%) in the cutlist editor (unless the
    9999// editor seek distance is set to 1 frame or 1 keyframe).