mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed a possible crash in the Schedule menu, in case Setup.EPGLinger is 0
This commit is contained in:
parent
4a199fe4ac
commit
10ffd08c82
3
HISTORY
3
HISTORY
@ -9663,8 +9663,9 @@ Video Disk Recorder Revision History
|
|||||||
- EXPIRELATENCY now only applies to VPS timers.
|
- EXPIRELATENCY now only applies to VPS timers.
|
||||||
- Deleting expired timers is now triggered immediately after the timers are modified.
|
- Deleting expired timers is now triggered immediately after the timers are modified.
|
||||||
|
|
||||||
2021-04-28:
|
2021-04-29:
|
||||||
|
|
||||||
- Now using a separate fixed value for internal EPG linger time. This fixes problems with
|
- Now using a separate fixed value for internal EPG linger time. This fixes problems with
|
||||||
spawned timers jumping to the next event in case Setup.EPGLinger is very small. (reported
|
spawned timers jumping to the next event in case Setup.EPGLinger is very small. (reported
|
||||||
by Jürgen Schneider).
|
by Jürgen Schneider).
|
||||||
|
- Fixed a possible crash in the Schedule menu, in case Setup.EPGLinger is 0.
|
||||||
|
4
epg.c
4
epg.c
@ -7,7 +7,7 @@
|
|||||||
* Original version (as used in VDR before 1.3.0) written by
|
* Original version (as used in VDR before 1.3.0) written by
|
||||||
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
|
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
|
||||||
*
|
*
|
||||||
* $Id: epg.c 5.5 2021/04/28 20:44:56 kls Exp $
|
* $Id: epg.c 5.6 2021/04/29 09:19:58 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "epg.h"
|
#include "epg.h"
|
||||||
@ -1385,6 +1385,8 @@ const cSchedule *cSchedules::GetSchedule(const cChannel *Channel, bool AddIfMiss
|
|||||||
{
|
{
|
||||||
// This is not very beautiful, but it dramatically speeds up the
|
// This is not very beautiful, but it dramatically speeds up the
|
||||||
// "What's on now/next?" menus.
|
// "What's on now/next?" menus.
|
||||||
|
if (!Channel)
|
||||||
|
return NULL;
|
||||||
static cSchedule DummySchedule(tChannelID::InvalidID);
|
static cSchedule DummySchedule(tChannelID::InvalidID);
|
||||||
if (!Channel->schedule)
|
if (!Channel->schedule)
|
||||||
Channel->schedule = GetSchedule(Channel->GetChannelID());
|
Channel->schedule = GetSchedule(Channel->GetChannelID());
|
||||||
|
Loading…
Reference in New Issue
Block a user