Ticket #11347: 0001-Ensure-video-is-always-unpaused-when-jumping-from-a-.patch

File 0001-Ensure-video-is-always-unpaused-when-jumping-from-a-.patch, 1.0 KB (added by peper03@…, 11 years ago)
  • mythtv/libs/libmythtv/DVD/mythdvdplayer.cpp

    From 0bf4e9a859ae540a81e84acae4cb1078e3d9250c Mon Sep 17 00:00:00 2001
    From: Richard <peper03@yahoo.com>
    Date: Sun, 13 Jan 2013 00:47:21 +0100
    Subject: Ensure video is always unpaused when jumping from a still.
    
    ---
     mythtv/libs/libmythtv/DVD/mythdvdplayer.cpp |    7 ++++++-
     1 file changed, 6 insertions(+), 1 deletion(-)
    
    diff --git a/mythtv/libs/libmythtv/DVD/mythdvdplayer.cpp b/mythtv/libs/libmythtv/DVD/mythdvdplayer.cpp
    index 418bc04..3f79e4b 100644
    a b bool MythDVDPlayer::VideoLoop(void) 
    134134        // if we go below the pre-buffering limit, the player will pause
    135135        // so do this 'manually'
    136136        DisplayNormalFrame(false);
    137         dvd_stillframe_showing = false;
     137        // unpause the still frame if more frames become available
     138        if (dvd_stillframe_showing && nbframes > 1)
     139        {
     140            dvd_stillframe_showing = false;
     141            UnpauseVideo();
     142        }
    138143        return !IsErrored();
    139144    }
    140145