diff options
Diffstat (limited to 'libsi/section.h')
-rw-r--r-- | libsi/section.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libsi/section.h b/libsi/section.h index 29af7f4b..5b70a220 100644 --- a/libsi/section.h +++ b/libsi/section.h @@ -6,7 +6,7 @@ * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * - * $Id: section.h 1.4 2006/04/14 10:53:44 kls Exp $ + * $Id: section.h 2.1 2012/02/26 13:58:26 kls Exp $ * * ***************************************************************************/ @@ -29,7 +29,7 @@ public: int getServiceId() const; int getPid() const; bool isNITPid() const { return getServiceId()==0; } - virtual int getLength() { return sizeof(pat_prog); } + virtual int getLength() { return int(sizeof(pat_prog)); } protected: virtual void Parse(); private: @@ -61,7 +61,7 @@ public: int getPid() const; int getStreamType() const; DescriptorLoop streamDescriptors; - virtual int getLength() { return sizeof(pmt_info)+streamDescriptors.getLength(); } + virtual int getLength() { return int(sizeof(pmt_info)+streamDescriptors.getLength()); } protected: virtual void Parse(); private: @@ -96,7 +96,7 @@ public: public: int getTransportStreamId() const; int getOriginalNetworkId() const; - virtual int getLength() { return sizeof(ni_ts)+transportStreamDescriptors.getLength(); } + virtual int getLength() { return int(sizeof(ni_ts)+transportStreamDescriptors.getLength()); } DescriptorLoop transportStreamDescriptors; protected: virtual void Parse(); @@ -131,7 +131,7 @@ public: int getEITpresentFollowingFlag() const; RunningStatus getRunningStatus() const; int getFreeCaMode() const; - virtual int getLength() { return sizeof(sdt_descr)+serviceDescriptors.getLength(); } + virtual int getLength() { return int(sizeof(sdt_descr)+serviceDescriptors.getLength()); } DescriptorLoop serviceDescriptors; protected: virtual void Parse(); @@ -168,7 +168,7 @@ public: int getFreeCaMode() const; DescriptorLoop eventDescriptors; - virtual int getLength() { return sizeof(eit_event)+eventDescriptors.getLength(); } + virtual int getLength() { return int(sizeof(eit_event)+eventDescriptors.getLength()); } protected: virtual void Parse(); private: @@ -225,7 +225,7 @@ public: int getServiceId() const; int getEventId() const; RunningStatus getRunningStatus() const; - virtual int getLength() { return sizeof(rst_info); } + virtual int getLength() { return int(sizeof(rst_info)); } protected: virtual void Parse(); private: @@ -242,7 +242,7 @@ public: AIT() {} class Application : public LoopElement { public: - virtual int getLength() { return sizeof(ait_app)+applicationDescriptors.getLength(); } + virtual int getLength() { return int(sizeof(ait_app)+applicationDescriptors.getLength()); } long getOrganisationId() const; int getApplicationId() const; int getControlCode() const; |