1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed processing SI::T2DeliverySystemDescriptor when typecasting it over an SI::ExtensionDescriptor

This commit is contained in:
Klaus Schmidinger 2019-03-15 16:28:16 +01:00
parent dc160ab570
commit 4b3fec660a
4 changed files with 13 additions and 2 deletions

View File

@ -3575,6 +3575,8 @@ Helmut Binder <cco@aon.at>
for fixing processing the last entry in the scan list of the EIT scanner for fixing processing the last entry in the scan list of the EIT scanner
for fixing processing transponder data in the NIT for fixing processing transponder data in the NIT
for fixing triggering the SDT filter when parsing the NIT for fixing triggering the SDT filter when parsing the NIT
for reporting a bug in processing SI::T2DeliverySystemDescriptor when typecasting it
over an SI::ExtensionDescriptor
Ulrich Eckhardt <uli@uli-eckhardt.de> Ulrich Eckhardt <uli@uli-eckhardt.de>
for reporting a problem with shutdown after user inactivity in case a plugin is for reporting a problem with shutdown after user inactivity in case a plugin is

View File

@ -9383,3 +9383,5 @@ Video Disk Recorder Revision History
- Added support for EAC3 audio from other sources (thanks to Jürgen Schneider). - Added support for EAC3 audio from other sources (thanks to Jürgen Schneider).
- No longer logging tuning timeouts for transponders that are announced in the NIT but - No longer logging tuning timeouts for transponders that are announced in the NIT but
are not currently broadcasting. are not currently broadcasting.
- Fixed processing SI::T2DeliverySystemDescriptor when typecasting it over an
SI::ExtensionDescriptor (reported by Helmut Binder).

View File

@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (at your option) any later version. *
* * * *
* $Id: descriptor.c 3.1 2013/10/30 10:16:18 kls Exp $ * $Id: descriptor.c 4.1 2019/03/15 16:12:43 kls Exp $
* * * *
***************************************************************************/ ***************************************************************************/
@ -870,6 +870,11 @@ int S2SatelliteDeliverySystemDescriptor::getScramblingSequenceIndex() const {
void ExtensionDescriptor::Parse() { void ExtensionDescriptor::Parse() {
int offset=0; int offset=0;
data.setPointerAndOffset<const descr_extension>(s, offset); data.setPointerAndOffset<const descr_extension>(s, offset);
extended_data_flag = s->descriptor_length > 0x04;
}
int ExtensionDescriptor::getExtendedDataFlag() const {
return extended_data_flag;
} }
int ExtensionDescriptor::getExtensionDescriptorTag() const { int ExtensionDescriptor::getExtensionDescriptorTag() const {

View File

@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (at your option) any later version. *
* * * *
* $Id: descriptor.h 3.2 2014/02/08 12:44:17 kls Exp $ * $Id: descriptor.h 4.1 2019/03/15 16:12:09 kls Exp $
* * * *
***************************************************************************/ ***************************************************************************/
@ -529,11 +529,13 @@ private:
class ExtensionDescriptor : public Descriptor { class ExtensionDescriptor : public Descriptor {
public: public:
int getExtendedDataFlag() const;
int getExtensionDescriptorTag() const; int getExtensionDescriptorTag() const;
protected: protected:
virtual void Parse(); virtual void Parse();
private: private:
const descr_extension *s; const descr_extension *s;
int extended_data_flag;
}; };
class T2DeliverySystemDescriptor : public Descriptor { class T2DeliverySystemDescriptor : public Descriptor {