Ticket #11710: 0001-Fixes-11710.patch

File 0001-Fixes-11710.patch, 1.0 KB (added by JYA, 12 years ago)

Fixes for crash

  • mythtv/libs/libmythtv/mythplayer.cpp

    From 2dedb65816c2ebe5a302400227ab478dbd2a4c81 Mon Sep 17 00:00:00 2001
    From: Jean-Yves Avenard <jyavenard@mythtv.org>
    Date: Mon, 29 Jul 2013 00:04:24 +1000
    Subject: [PATCH] Fixes #11710
    
    This will revert to the behaviour prior to c13683f20bb9, when we aren't watching a recording
    ---
     mythtv/libs/libmythtv/mythplayer.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
    index 6dd322f..5ae6e5a 100644
    a b uint64_t MythPlayer::TranslatePositionFrameToMs(uint64_t position,  
    49174917                                                bool use_cutlist) const
    49184918{
    49194919    float frameRate = GetFrameRate();
    4920     if (position == (uint64_t)-1)
     4920    if (player_ctx->recorder && position == (uint64_t)-1)
    49214921    {
    49224922        float recorderFrameRate = player_ctx->recorder->GetFrameRate();
    49234923        if (recorderFrameRate > 0)