mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed initializing the cChannel::schedule pointer after reading EPG data with PUTE
This commit is contained in:
parent
cbc04d73b8
commit
eebcc57079
@ -2941,6 +2941,8 @@ Manuel Reimer <Manuel.Reimer@gmx.de>
|
|||||||
for suggesting to make the SVDRP command DELC accept a channel id
|
for suggesting to make the SVDRP command DELC accept a channel id
|
||||||
for reporting a crash in the SVDRP command CLRE in case a non-existing channel
|
for reporting a crash in the SVDRP command CLRE in case a non-existing channel
|
||||||
number is given
|
number is given
|
||||||
|
for reporting that LSTE doesn't work after PUTE in case a channel didn't already
|
||||||
|
have EPG data
|
||||||
|
|
||||||
Rene van den Braken <rene@vandenbraken.name>
|
Rene van den Braken <rene@vandenbraken.name>
|
||||||
for reporting a bug in writing the PCR pid into the PMT in
|
for reporting a bug in writing the PCR pid into the PMT in
|
||||||
|
4
HISTORY
4
HISTORY
@ -9578,7 +9578,7 @@ Video Disk Recorder Revision History
|
|||||||
given (reported by Manuel Reimer).
|
given (reported by Manuel Reimer).
|
||||||
- Fixed handling $(PKG_CONFIG) in newplugin (thanks to Winfried Köhler).
|
- Fixed handling $(PKG_CONFIG) in newplugin (thanks to Winfried Köhler).
|
||||||
|
|
||||||
2021-01-02:
|
2021-01-04:
|
||||||
|
|
||||||
- Fixed strreplace() to handle NULL strings (reported by Jürgen Schneider).
|
- Fixed strreplace() to handle NULL strings (reported by Jürgen Schneider).
|
||||||
- Somewhere down the road the 'x' bit of Doxyfile.filter got lost, so the
|
- Somewhere down the road the 'x' bit of Doxyfile.filter got lost, so the
|
||||||
@ -9587,3 +9587,5 @@ Video Disk Recorder Revision History
|
|||||||
- Fixed a crash in the SVDRP command CLRE in case a non-existing channel number is
|
- Fixed a crash in the SVDRP command CLRE in case a non-existing channel number is
|
||||||
given (reported by Manuel Reimer).
|
given (reported by Manuel Reimer).
|
||||||
- Fixed handling $(PKG_CONFIG) in newplugin (thanks to Winfried Köhler).
|
- Fixed handling $(PKG_CONFIG) in newplugin (thanks to Winfried Köhler).
|
||||||
|
- Fixed initializing the cChannel::schedule pointer after reading EPG data with PUTE
|
||||||
|
(reported by Manuel Reimer).
|
||||||
|
9
epg.c
9
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 4.9 2019/05/20 09:55:22 kls Exp $
|
* $Id: epg.c 5.1 2021/01/04 09:05:26 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "epg.h"
|
#include "epg.h"
|
||||||
@ -1311,9 +1311,14 @@ bool cSchedules::Read(FILE *f)
|
|||||||
fclose(f);
|
fclose(f);
|
||||||
if (result) {
|
if (result) {
|
||||||
// Initialize the channels' schedule pointers, so that the first WhatsOn menu will come up faster:
|
// Initialize the channels' schedule pointers, so that the first WhatsOn menu will come up faster:
|
||||||
for (cChannel *Channel = Channels->First(); Channel; Channel = Channels->Next(Channel))
|
for (cChannel *Channel = Channels->First(); Channel; Channel = Channels->Next(Channel)) {
|
||||||
|
if (const cSchedule *Schedule = Channel->schedule) {
|
||||||
|
if (!Schedule->ChannelID().Valid()) // this is the DummySchedule
|
||||||
|
Channel->schedule = NULL;
|
||||||
|
}
|
||||||
Schedules->GetSchedule(Channel);
|
Schedules->GetSchedule(Channel);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user