summaryrefslogtreecommitdiff
path: root/p2pvr/dvb/siParsers/programMap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'p2pvr/dvb/siParsers/programMap.cpp')
-rw-r--r--p2pvr/dvb/siParsers/programMap.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/p2pvr/dvb/siParsers/programMap.cpp b/p2pvr/dvb/siParsers/programMap.cpp
index 448bda0..90bb8cf 100644
--- a/p2pvr/dvb/siParsers/programMap.cpp
+++ b/p2pvr/dvb/siParsers/programMap.cpp
@@ -1,6 +1,8 @@
#include "programMap.h"
#include <boost/bind.hpp>
+namespace P2PVR {
+namespace DVBSI {
struct ProgramMapStream {
uint8_t stream_type;
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
@@ -30,12 +32,12 @@ SiProgramMapParser::CheckTableId(u_char tableId) const
}
void
-SiProgramMapParser::ParseSiTable(const struct ProgramMap * pm, DVBSI::ProgramMapPtr pmp)
+SiProgramMapParser::ParseSiTable(const struct ProgramMap * pm, ::DVBSI::ProgramMapPtr pmp)
{
pmp->ServiceId = ntohs(pm->header.content_id);
auto pms = ParseDescriptors<ProgramMapStream>(pm->data, HILO(pm->program_info_len));
while (reinterpret_cast<const u_char*>(pms) < &pm->header.section_length_lo + HILO(pm->header.section_length) - 4) {
- DVBSI::StreamPtr s = new DVBSI::Stream();
+ ::DVBSI::StreamPtr s = new ::DVBSI::Stream();
s->Type = pms->stream_type;
s->Id = HILO(pms->elementary_PID);
s->ServiceId = pmp->ServiceId;
@@ -44,3 +46,6 @@ SiProgramMapParser::ParseSiTable(const struct ProgramMap * pm, DVBSI::ProgramMap
pms = ParseDescriptors<ProgramMapStream>(pms->data, HILO(pms->ES_info_length));
}
}
+}
+}
+