Logging event status changes now also shows the previous status

This commit is contained in:
Klaus Schmidinger 2024-03-06 20:16:51 +01:00
parent f7f8a6b131
commit ff16bbd777
3 changed files with 5 additions and 2 deletions

View File

@ -2568,6 +2568,7 @@ Markus Ehrnsperger <markus.ehrnsperger@googlemail.com>
for making the primary device no longer start unnecessary threads if it doesn't have
a decoder
for improving handling present/following data for VPS timers
for making logging event status changes also show the previous status
Werner Färber <w.faerber@gmx.de>
for reporting a bug in handling the cPluginManager::Active() result when pressing

View File

@ -9906,3 +9906,5 @@ Video Disk Recorder Revision History
- The new setup parameters "EPG scan max. channel number" and "EPG pause after scan"
can be used to tune the behavior of the EPG scan (see MANUAL for details).
- Improved handling present/following data for VPS timers (thanks to Markus Ehrnsperger).
- Logging event status changes now also shows the previous status (thanks to Markus
Ehrnsperger).

4
epg.c
View File

@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
*
* $Id: epg.c 5.7 2022/11/22 14:33:48 kls Exp $
* $Id: epg.c 5.8 2024/03/06 20:16:51 kls Exp $
*/
#include "epg.h"
@ -177,7 +177,7 @@ void cEvent::SetVersion(uchar Version)
void cEvent::SetRunningStatus(int RunningStatus, const cChannel *Channel)
{
if (Channel && runningStatus != RunningStatus && (RunningStatus > SI::RunningStatusNotRunning || runningStatus > SI::RunningStatusUndefined) && schedule && schedule->HasTimer())
isyslog("channel %d (%s) event %s status %d", Channel->Number(), Channel->Name(), *ToDescr(), RunningStatus);
isyslog("channel %d (%s) event %s status %d->%d", Channel->Number(), Channel->Name(), *ToDescr(), runningStatus, RunningStatus);
runningStatus = RunningStatus;
}