Ticket #12281: 0001-TVRec-Set-hostname-of-guide-progs-for-STOP_RECORDING.patch

File 0001-TVRec-Set-hostname-of-guide-progs-for-STOP_RECORDING.patch, 1007 bytes (added by Roger Siddons <dizygotheca@…>, 8 years ago)
  • mythtv/libs/libmyth/programinfo.cpp

    From 53b37fb0005cf0e83e2ade1e49b7a04db66470bf Mon Sep 17 00:00:00 2001
    From: Roger Siddons <dizygotheca@ntlworld.com>
    Date: Thu, 5 Nov 2015 12:23:14 +0000
    Subject: [PATCH] TVRec: Set hostname of guide progs for STOP_RECORDING
     messages.
    
    For STOP_RECORDING messages the MASTER backend uses the ProgInfo hostname to determine the message source.
    
    Guide programmes don't initialise the hostname so STOP_RECORDING messages are wrongly treated as slave requests, causing a race condition.
    
    Fixes part of 12281
    
    diff --git a/mythtv/libs/libmyth/programinfo.cpp b/mythtv/libs/libmyth/programinfo.cpp
    index c213c60..6118252 100644
    a b ProgramInfo::ProgramInfo( 
    793793        dupmethod   = s.dupmethod;
    794794        findid      = s.findid;
    795795        recordedid  = s.recordedid;
     796        hostname    = s.hostname;
    796797
    797798        // This is the exact showing (same chanid or callsign)
    798799        // which will be recorded