#include <sys/ioctl.h>
#include <fcntl.h>
#include "../../../Utils/Exception.hh"
+// TODO REMOVE V
+#include <iostream>
//#include "DVBDemuxHandles.mpp"
#define prefix_
return 4096;
}
-prefix_ void senf::DVBDemuxSectionSocketProtocol::setSectionFilter(unsigned short int pid, unsigned int timeout, unsigned int flags, unsigned char filter, unsigned char mask, unsigned char mode)
+prefix_ void senf::DVBDemuxSectionSocketProtocol::setSectionFilter(unsigned short int pid, unsigned char filter, unsigned int flags, unsigned char mask, unsigned char mode, unsigned int timeout)
const
{
struct dmx_sct_filter_params sec_filter;
::memset(&sec_filter, 0, sizeof(struct dmx_sct_filter_params));
-
- sec_filter.pid = pid;
- sec_filter.filter.filter[0] = filter;
- sec_filter.filter.mask[0] = mask;
- sec_filter.filter.mode[0] = mode;
- sec_filter.flags = flags;
+ sec_filter.pid = pid;
+ sec_filter.filter.filter[0] = filter;
+ sec_filter.filter.mask[0] = mask;
+ sec_filter.filter.mode[0] = mode;
+ sec_filter.flags = flags;
- if (::ioctl(fd(), DMX_SET_FILTER, filter) < 0)
- SENF_THROW_SYSTEM_EXCEPTION("Could not set section filter of DVB adapter.");
+ if (::ioctl(fd(), DMX_SET_FILTER, &sec_filter) < 0)
+ SENF_THROW_SYSTEM_EXCEPTION("Could not set section filter of DVB adapter.");
}
// ----------------------------------------------------------------
string configLine = parser.getConfigLine(channel);
- SENF_LOG((senf::log::MESSAGE) ("async: configline found: " << channel) );
frontend = parser.getFrontendParam(configLine);
switch (type) {
case FE_QPSK:
dvb_frontend_event ev;
string configLine = parser.getConfigLine(channel);
- SENF_LOG((senf::log::MESSAGE) ("sync: configline found: " << channel) );
frontend = parser.getFrontendParam(configLine);
switch (type) {
case FE_QPSK:
#include <senf/Scheduler/Scheduler.hh>
#include "DVBConfigParser.hh"
#include <senf/Console.hh>
+
+#define MPE_TABLEID 62
+
namespace senf {
std::string status2String(fe_status_t status);
class DVBSocketController : boost::noncopyable
unsigned int signalStrength();
void setSectionFilter(unsigned short int pid,
- unsigned char filter = 62,
+ unsigned char filter = MPE_TABLEID,
unsigned int flags = DMX_IMMEDIATE_START | DMX_CHECK_CRC,
unsigned char mask = 0xff,
unsigned char mode = 0,