Ticket #12281: 0005-Fix-repeated-stopping-of-restarted-recordings.patch

File 0005-Fix-repeated-stopping-of-restarted-recordings.patch, 966 bytes (added by Roger Siddons <dizygotheca@…>, 8 years ago)
  • mythtv/libs/libmyth/programinfo.h

    From 5f2be8c90c8c39698afafab41f3ce29aa64fb108 Mon Sep 17 00:00:00 2001
    From: Roger Siddons <dizygotheca@ntlworld.com>
    Date: Sun, 8 Nov 2015 15:13:30 +0000
    Subject: [PATCH] Fix repeated stopping of restarted recordings
    
    Stopping a recording that has been restarted more than once fails because
    of a starttime mismatch.
    
    Fixes part of 12281
    
    diff --git a/mythtv/libs/libmyth/programinfo.h b/mythtv/libs/libmyth/programinfo.h
    index ed06dc7..9e479a8 100644
    a b class MPUBLIC ProgramInfo 
    310310    // Used for extending scheduled recordings
    311311    bool IsSameProgramWeakCheck(const ProgramInfo &other) const;
    312312    bool IsSameRecording(const ProgramInfo &other) const
    313         { return chanid == other.chanid && recstartts == other.recstartts; }
     313        { return recordid == other.recordid; }
    314314    bool IsSameChannel(const ProgramInfo &other) const;
    315315
    316316    // Quick gets