Skip to content

Commit

Permalink
Variable name change in ServiceDescriptorMapping
Browse files Browse the repository at this point in the history
Change variable m_serviceid to m_service_type to
prevent possible confusion about what is stored here.
  • Loading branch information
kmdewaal committed Dec 7, 2019
1 parent 3f903a9 commit 3c460f2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mythtv/libs/libmythtv/mpeg/dvbdescriptors.h
Expand Up @@ -1443,11 +1443,10 @@ class ScramblingDescriptor : public MPEGDescriptor
};

// DVB Bluebook A038 (Feb 2019) p 83, Table 89: Service type coding
// Map serviceid's to their types
class ServiceDescriptorMapping
{
public:
explicit ServiceDescriptorMapping(const uint serviceid) { m_serviceid = serviceid; }
explicit ServiceDescriptorMapping(const uint service_type) { m_service_type = service_type; }
enum
{
kServiceTypeDigitalTelevision = 0x01,
Expand Down Expand Up @@ -1498,7 +1497,7 @@ class ServiceDescriptorMapping
kServiceTypeNimiqTV9 = 0x96,

};
uint ServiceType(void) const { return m_serviceid; }
uint ServiceType(void) const { return m_service_type; }
bool IsDTV(void) const
{
return ((ServiceType() == kServiceTypeDigitalTelevision) ||
Expand Down Expand Up @@ -1545,7 +1544,7 @@ class ServiceDescriptorMapping
QString toString(void) const;

private:
uint m_serviceid;
uint m_service_type;
};

// DVB Bluebook A038 (Sept 2011) p 80
Expand Down

0 comments on commit 3c460f2

Please sign in to comment.